Use pd.Timestamp
for parsing and representing points in time.
#45
Labels
pd.Timestamp
for parsing and representing points in time.
#45
Currently times are represented by
datetime.datetime
objects; while parsing string representations of times is done with the librarydateutil
. However Pandas convertsdatetime.datetime
topd.Timestamp
, and represents times internally as integers. Furthermorepd.Timestamp
can automatically and comfortably parse string representations of times.Therefore port all date computations to
pd.Timestamp
.Empty series should be filled with
NaN
ornumpy.datetime64('NaT')
, not with None.http://pandas.pydata.org/pandas-docs/dev/missing_data.html#datetimes
http://docs.scipy.org/doc/numpy-dev/reference/arrays.datetime.html
and discussion at end:
pandas-dev/pandas#3593 (comment)
The text was updated successfully, but these errors were encountered: