I have an Excel file from which I need to extract data at given intervals of time and angles. Easy taskwith SQL but I need to do it with pandas now. I can't figure ou if I can attach the actual file, but here are the names of the columns from the CSV file :
time;ms;interface;packet;GEN_Src;GEN_Dest;GEN_Class;GEN_Type;GEN_Length;GEN_cycle_cnt;lrt_data_type;corr_src;corr_acq_cnt;corr_fragment;corr_fragment_cnt;corr_acq_time;;;;;;;;;;;;;;;;;;;
There are actually dozens of columns without a name at the end, in which lie the data I need to extract. Slicing should work for this.
However, I need to separate them according to intervals of time (column 'time' ) and angles (column 'corr_src').
When I run :
df = pd.read_csv(r'path\EM_Cell_A-Sample1.csv', index_col='time')
I get :
pandas.errors.ParserError: Could not construct index. Requested to use 1 number of columns, but 1088 left to parse.
Previous attempts, driven by solutions found here : How to check if a column exists in Pandas indicate that the 'time' column does not exist.