Guest User

Untitled

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