-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pandas Panel(s) are not supported in the Variable Explorer #2510
Comments
We don't have support for panels, just DataFrames and Series. @dhoegh, how hard would it be to add support for them? Could you help us with that? |
I haven't worked worked with panels, so I don't know. I do not have time for looking into the issue. By looking in the documentation panel is described as a three dimensional container, see:http://pandas.pydata.org/pandas-docs/stable/dsintro.html. This means it is not straight forward and some inspiration from the three dimensional array viewer could probably be used. |
Maybe you should consider to display "slices" of Panel (ie DataFrame)
see http://pandas.pydata.org/pandas-docs/stable/indexing.html
Ideally panel editor should provide a way to define if slice are given as item, major_index or minor_index |
This is exactly how the 3d array viewer works does a slice always produced a dataframe? |
If you want to slice, then e.g.
multi-indexers / lists will produce a shape based on what you are sub-selecting, e.g.
note that these are all consistent with numpy slicing semantics |
Just some code to create a sample Panel without relying on
Panel4D can be construct using
but I don't think that Spyder variables editor support hyper-cubes (Numpy arrays with more than 3 dimensions)
|
As |
We could consider to support |
Yes that would make sense! |
@Prikers awesome, I think its better to open a new issue :-), you can also tag this issue for reference on that new issue. |
Hello,
try in IPython inside Spyder
This panel doesn't appears in variables explorer.
df_adj_close
appears in variables explorer.Kind regards
The text was updated successfully, but these errors were encountered: