-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
panel.to_frame() discards nan by default #7879
Comments
+1 on a warning. This surprises me every time. |
@jreback |
can you show the error with |
Sorry, @jreback how exactly do I do that? Do you want me to change some On Mon, Nov 3, 2014 at 12:16 AM, jreback notifications@github.com wrote:
Peadar Coyle |
just show a complete example and the error it outputs (when you change the default) |
This just got me. Took a long time to figure out why data was missing. 👍 for any solution. :) |
This got me yet one more time! 1 hour of troubleshooting. :) |
pull-requests welcome to change this for 0.17.0 |
Is PR #8063 a solution or is it worth to write a new one or to change the default behavior? |
@hensing so options are this
|
@jreback solution № 2 (deprecate und change kw) seems for me to be the most elegant solution — I'll give it a try next weekend. |
gr8! |
@hensing status? |
@jreback I couldn't work on that due to bike accident, sorry. Hope I can make it this weekend. |
I am a bit confused: I'm using Pandas 19.2 and still have the default drop-behaviour with the filter_observations-Keyword.
When I look into the source I see no changes regarding dropna etc: What am I missing? |
this is an open issue iirc there a couple of pull requests that were almost there but did not get merged welcome to have a complete one |
closing as Panel deprecated |
As already described in issue #3690, panel.to_frame discards all minor entries with nan in the data, which can be very confusing. I believe there should be a warning, first time data is dropped or the opposite should be the default behavior.
The warning could be treated similar to a ZeroDivisionWarning in numpy only on the first occurrence.
See below for an example:
Output:
Using filter_observations=False, nan won't be dropped:
Output:
The text was updated successfully, but these errors were encountered: