I'm reading a csv file which contains only numerical data, but not all of them are being read.
I'm calling it as follows:
df = pd.read_csv(file_name, sep=';', usecols=Settings.util_columns(), parse_dates=['TIMESTAMP'], infer_datetime_format=True, low_memory=False, quoting=csv.QUOTE_NONE)
print(f'Reading {file_name}')
print(df['TIMESTAMP'].min(), '|', df['TIMESTAMP'].max())
and it outputs the following:
Reading clean_data.csv
2008-12-03 20:30:00 | 2018-10-05 03:50:00
However, clean_data.csv
(which is sorted by 'TIMESTAMP'
) contain TimeStamps up to 2019-08-27.
In addition to this, no warning nor error message is thrown/shown.
I found This question from where I took the quoting=csv.QUOTE_NONE
, however it didn't change anything. Consider that my data is numerical.
Using:
- python==3.6.6
- pandas==0.25.1
UPDATE
My apologize, it was my fault. It turn out that the file which I was reading was not the one I was expecting to read.
Once again, I'm sorry, and thanks for your time.