-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
column datatype conversion impacts whole dataframe when using df.ix indexing #8607
Comments
pls pd.show_versions() |
Should be the most current distributions via Anaconda INSTALLED VERSIONScommit: None pandas: 0.13.1 |
this was fixed in 0.14 or 0.14.1 0.15.0 is current and just released |
Cool, guess Anaconda is lagging by a few releases (or I need to update?). I'll take your word for it and close the issue. Thanks! |
you should be able to conda update pandas and get 0.15 now |
I don't know how to reopen the issue, but after updating and confirming that I've got 0.15.0, it still exhibits the behavior that inspired me to submit this bug. pd.show_version(): INSTALLED VERSIONScommit: None pandas: 0.15.0 |
Yep, I can confirm I get the same issue with master |
@dmarx ok, something gone ary. It is supposed to be the same (and not touch anything else). Its is actually a bit tricky, as it DOES need to do some dtype inference (and possibly break up a block of dtypes), which is the problem here (e.g. say you have 2 int64 dtypes, then change one of them to datetime64[ns], this get split to 2 blocks, int64, and datetime64[ns] - this is internal). |
My dataframe has a timestamp column that is encoded as unix epoch. When I convert the column using named index selection it works fine, but when I use the '.ix' syntax it coerces the whole dataframe. Example:
I strongly suspect the difference in behavior here is problematic and should be resolved. If this is actually "how things should work," I'd greatly appreciate it if someone could explain why the different indexing styles produce these different results
The text was updated successfully, but these errors were encountered: