October 2017
Intermediate to advanced
532 pages
16h 10m
English
>>> crime_sort = pd.read_hdf('data/crime.h5', 'crime') \ .set_index('REPORTED_DATE') \ .sort_index()
>>> common_attrs = set(dir(crime_sort.index)) & \ set(dir(pd.Timestamp))>>> print([attr for attr in common_attrs if attr[0] != '_'])['to_pydatetime', 'normalize', 'day', 'dayofyear', 'freq', 'ceil', 'microsecond', 'tzinfo', 'weekday_name', 'min', 'quarter', 'month', 'tz_convert', 'tz_localize', 'is_month_start', 'nanosecond', 'tz', 'to_datetime', 'dayofweek', 'year', 'date', 'resolution', ...
Read now
Unlock full access