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

Testing / infrastructure to support datetime64 in Series, DataFrame #996

Closed
wesm opened this issue Apr 5, 2012 · 1 comment
Closed

Testing / infrastructure to support datetime64 in Series, DataFrame #996

wesm opened this issue Apr 5, 2012 · 1 comment
Labels
Datetime Datetime data dtype Enhancement
Milestone

Comments

@wesm
Copy link
Member

wesm commented Apr 5, 2012

right now:

In [7]: Series(date_range('1/1/2000', '12/30/2000 23:00:00', freq='BM'))
Out[7]: 
0     2000-01-31 00:00:00
1     2000-02-29 00:00:00
2     2000-03-31 00:00:00
3     2000-04-28 00:00:00
4     2000-05-31 00:00:00
5     2000-06-30 00:00:00
6     2000-07-31 00:00:00
7     2000-08-31 00:00:00
8     2000-09-29 00:00:00
9     2000-10-31 00:00:00
10    2000-11-30 00:00:00
11    2000-12-29 00:00:00

In [8]: Series(date_range('1/1/2000', '12/30/2000 23:00:00', freq='BM')).dtype
Out[8]: dtype('datetime64[us]')

In [9]: Series(date_range('1/1/2000', '12/30/2000 23:00:00', freq='BM')).reindex(range(20)
   ...: )
Out[9]: 
0     9.492768e+14
1     9.517824e+14
2     9.544608e+14
3     9.568800e+14
4     9.597312e+14
5     9.623232e+14
6     9.650016e+14
7     9.676800e+14
8     9.701856e+14
9     9.729504e+14
10    9.755424e+14
11    9.780480e+14
12             NaN
13             NaN
14             NaN
15             NaN
16             NaN
17             NaN
18             NaN
19             NaN

similarly:


In [11]: DataFrame({'A' : rng})
Out[11]: 
                  A
0   949276800000000
1   951782400000000
2   954460800000000
3   956880000000000
4   959731200000000
5   962323200000000
6   965001600000000
7   967680000000000
8   970185600000000
9   972950400000000
10  975542400000000
11  978048000000000

In [12]: DataFrame({'A' : rng}).dtypes
Out[12]: A    int64
wesm added a commit that referenced this issue Apr 14, 2012
* timeseries: (200 commits)
  TST: don't use deprecated DateRange
  BUG: fix buglets surfacing from merge
  RLS: set released to false, bump dev version to 0.8.0
  BUG: fix major performance issue in DatetimeIndex.union affecting join performance on irregular indexes, remedying #1046
  ENH: add to_datetime method to Index, close #208
  ENH: legacy time rule support and refactoring, better alias handling. misc tests, #1041
  ENH: to_datetime will convert array of strings and NAs to datetime64 with NaT, close #999
  ENH: more datetime64 integration in core data algorithms per #996, close #1035
  ENH: handle datetime64 in block formation from dict of arrays in DataFrame constructor, close #1037
  BUG: fix broken time_rule usage in legacy DateRange, close #1036
  BUG: name inline method something different
  ENH: initial version of convert_to_annual for pandas, #736
  BUG: convert datetime64 -> datetime.datetime for matplotlib, close #1003
  ENH: integrate cython ohlc in groupby and test, close #152
  ENH: implement Cython OHLC function for groupby #152
  ENH: use cython bin groupers, fix bug in DatetimeIndex.__getitem causing slowness, some timeseries vbenches
  ENH: enable to_datetime to be vectorized, handle NAs, close #858
  TST: interactions between array of datetime objects and DatetimeIndex, bug fixes
  TST: remove errant foo and test_datetime64.py
  TST: moved test_datetime64.py tests to test_timeseries
  ...
@wesm
Copy link
Member Author

wesm commented Apr 22, 2012

The basics are there. Will put any further problems (merge/join comes to mind) on separate issues

@wesm wesm closed this as completed Apr 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant