pandas reindex DataFrame with datetime objects
问题 Is it possible to reindex a pandas DataFrame using a column made up of datetime objects? I have a DataFrame df with the following columns: Int64Index: 19610 entries, 0 to 19609 Data columns: cntr 19610 non-null values #int datflt 19610 non-null values #float dtstamp 19610 non-null values #datetime object DOYtimestamp 19610 non-null values #float dtypes: int64(1), float64(2), object(1) I can reindex the df easily along DOYtimestamp with: df.reindex(index=df.dtstamp) and DOYtimestamp has the