Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pd.Timestamp for parsing and representing points in time. #45

Closed
eike-welk opened this issue May 14, 2013 · 1 comment
Closed

Use pd.Timestamp for parsing and representing points in time. #45

eike-welk opened this issue May 14, 2013 · 1 comment

Comments

@eike-welk
Copy link
Owner

eike-welk commented May 14, 2013

Currently times are represented by datetime.datetime objects; while parsing string representations of times is done with the library dateutil. However Pandas converts datetime.datetime to pd.Timestamp, and represents times internally as integers. Furthermore pd.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 or numpy.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)

@eike-welk
Copy link
Owner Author

Done. Times are now repesented as series of Datetime64 objects. Dates from Ebay are parsed by pd.Timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant