-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
FacetGrid
data no longer contains all columns from original input dataframe
#2622
Comments
FacetGrid
data no longer the same as original input dataframeFacetGrid
data no longer contains all columns from original input dataframe
This is a bug that was partially fixed in #2581. I say partially because the current solution preserves only the columns that are actually used in the relplot (but with their original names, if present). The problem was caused (and the solution made more complicated) when relplot was enhanced to plot wide-form data or vectors that are not in the input dataframe. There may be a better solution for the normal case of long input data with named vectors. In the meantime, I think if you just reassign your input dataframe to the |
Thanks. I did figure out that workaround to reassign back to I'm not sure of all the implications of the changes to support wide-form data, but I wonder if there's a better fix here to store separate attributes for the manipulated dataframes used internally by plotting functionality, while exposing the original data in the |
Thanks again for the reproducible report. See #2623 for a fix. Would be great if you have a chance to test it out with your actual usecase. |
After recently upgrading from seaborn 0.9.1 to 0.11.1, I noticed that after using
relplot
on a dataframe, the returnedFacetGrid
object only contains a transformed dataframe which makesFacetGrid.facet_data()
return a lot less useful for additional plot manipulation using information from the original dataframe. A minimal repro:Previously,
g.data
would contain all of the original dataframe columns, and I was relying on that so that I could useg.facet_data()
to augment plots with additional information from the original dataframe.Is there a way to get back that functionality?
The text was updated successfully, but these errors were encountered: