Skip to content
Advertisement

Tag: datetime64

Why does my date column change when I convert to an ndarray

below is my dataframe when I convert my ‘Year” column to list(), they are saved as time stamp However, when I convert to values they are saved as datetime64 How do I get my array in Timestamp itself (instead of datetime64 format)? Answer It’s converted to a datetime64 because numpy arrays only hold certain datatypes. Timestamp objects are not one

Advertisement