1

I have a kind of weather station data files from several locations. I'd like to call them by simply writing the name, e.g:

import pandas as pd
location = 'sample'
file = '/home/saulo/experimental/inmet_auto/'location'_auto_201903.csv'
df = pd.read_csv(file, skiprows=11, header=None)

But this way is not possible. How could I open the file properly?

Aran-Fey
  • 39,665
  • 11
  • 104
  • 149
Saulo Carvalho
  • 139
  • 3
  • 15

0 Answers0