-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
vectorised setting of timestamp columns fails with python datetime and numpy datetime64 #10408
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
Comments
I will mark this as a bug, and if you'd like to dig-in you are welcome. This fix is actually pretty straightforward. |
@jreback, you understood there is also an issue with numpy datetime64 'dates' not just python datetime.dates. (ie I get 1970 when I use a numpy datetime64 date) |
@seanv507 you must have an older version of pandas/numpy. In current this works with
|
@jreback I can confirm this also with pandas 0.16.2 / numpy 1.9.2
|
which is the version i am using as I mentioned in my original bug report On Tue, Jun 23, 2015 at 12:52 PM, Joris Van den Bossche <
|
Ahh, ok, seems that the test was insufficient; e.g. we are testing the equivalent of the [21], you are doing [22]
ok, easy enough prob to fix, want to take a crack at it? |
fix was in #9522 (original) |
@jreback the PR you link to is about a datetime64 in the left-hand-side (inside the loc), while here it is the value being assigned, so don't know if this is related |
ahh right - ok should be straightforward in any event |
yep, indeed. But just to be sure this does not get lost, I will open a separate issue, and leave this one for the -> #10412 |
@jreback - yes I will give it a go! |
* commit 'v0.16.2-42-g383865f': (72 commits) BUG: provide categorical concat always on axis 0, pandas-dev#10430 numpy 1.10 makes this an error for 1-d on axis != 0 DOC: update missing.rst with ref to groupby.rst BUG: Timedeltas with no specified units (and frac) should raise, pandas-dev#10426 BUG: using .loc[:,column] fails when the object is a multi-index, pandas-dev#10408 Removed scikit-timeseries migration docs from FAQ BUG: GH10395 bug in DataFrame.interpolate with axis=1 and inplace=True BUG: GH10392 bug where Table.select_column does not preserve column name TST: Use unicode literals in string test PERF: fix _get_level_indexer to accept an intermediate indexer result PERF: bench for pandas-dev#10287 BUG: drop_duplicates drops name(s). ENH: Enable ExcelWriter to construct in-memory sheets BLD: remove support for 3.2, pandas-dev#9118 PERF: timedelta and datetime64 ops improvements PERF: parse timedelta strings in cython pandas-dev#6755 closes bug in reset_index when index contains NaT Check for size=0 before setting item Fixes pandas-dev#10193 closes bug in apply when function returns categorical BUG: frequencies.get_freq_code raises an error against offset with n != 1 CI: run doc-tests always ...
PR #10644 |
I am using Pandas 0.16.2
The text was updated successfully, but these errors were encountered: