Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
vectorised setting of timestamp columns fails with python datetime and numpy datetime64 #10408
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
added Timeseries Dtypes
labels
Jun 22, 2015
jreback
added this to the
Someday
milestone
Jun 22, 2015
jreback
added the
Bug
label
Jun 22, 2015
jreback
referenced
this issue
Jun 22, 2015
Open
slicing dataframe with date index is not working properly #10406
jreback
added Difficulty Novice Effort Low
labels
Jun 22, 2015
seanv507
commented
Jun 23, 2015
|
@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
|
seanv507
commented
Jun 23, 2015
|
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? |
jreback
modified the milestone: 0.17.0, Someday
Jun 23, 2015
|
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 |
jorisvandenbossche
referenced
this issue
Jun 23, 2015
Closed
BUG: setting a slice with datetime64 ignores datetime64 resolution #10412
|
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 |
seanv507
commented
Jun 23, 2015
|
@jreback - yes I will give it a go! |
seanv507
closed this
Jun 23, 2015
seanv507
reopened this
Jun 23, 2015
jreback
added a commit
to jreback/pandas
that referenced
this issue
Jun 24, 2015
|
|
jreback |
9e517ac
|
yarikoptic
added a commit
to neurodebian/pandas
that referenced
this issue
Jul 2, 2015
|
|
yarikoptic |
be8c77a
|
|
PR #10644 |
seanv507 commentedJun 22, 2015
I am using Pandas 0.16.2