Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pytz
- from datetime import datetime
- import pandas as pd
- df = pd.DataFrame({'dates': [datetime(108, 7, 30, 9, 25, 27, tzinfo=pytz.utc),
- datetime(2018, 3, 20, 9, 25, 27, tzinfo=pytz.utc),
- datetime(2529, 7, 30, 9, 25, 27, tzinfo=pytz.utc)]})
- In [5]: df.dates
- Out[5]:
- 0 0108-07-30 09:25:27+00:00
- 1 2018-03-20 09:25:27+00:00
- 2 2529-07-30 09:25:27+00:00
- Name: dates, dtype: object
Add Comment
Please, Sign In to add comment