Guest User

Untitled

a guest
Jan 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. print(dt.index)
  2. # = DatetimeIndex(['2018-01-01 20:00:00', ..., '2018-01-03 04:00:00'],
  3. # dtype='datetime64[ns]',
  4. # name=u'DateTime',
  5. # length=385,
  6. # freq=None)
  7.  
  8. my_axis.plot(df)
  9. print(my_axis.get_xlim()) # = (736695.72708333354, 736697.14791666681)
  10.  
  11. # vs
  12.  
  13. df.plot(ax=my_axis)
  14. print(my_axis.get_xlim()) # = (25247280.0, 25249200.0)
Add Comment
Please, Sign In to add comment