- #1
- 53
- 6
I am trying to drop the series size so that it matches the size of the dataframe as I need to copy the index value of the series into the df but I am getting mismatch errors. df has a size of 100 but time has a size of 200 so I want to remove the extra rows in time to match df. how can i handle this situation?
I have started with:
then I am not sure how best to proceed.
Python:
df.index = pd.to_datetime(time).values
I have started with:
Python:
if len(df) != len(time):
then I am not sure how best to proceed.