-
Notifications
You must be signed in to change notification settings - Fork 572
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
ggplot doesn't work with latest pandas dataframe #612
Comments
same issue over here |
@zjffdu temporary fix would to be downgrade your Pandas package to 0.19.2 |
This is actually already fixed in the code (9d00182). If you
it should work. |
@asbhat When would be the next release to include this fix ? |
@asbhat, I still get the same error when installing that specific ggplot version
|
@zjffdu I'm not sure sorry. I just ran into this problem myself last week and figured I would try and help if you were having the same issue |
@chethanjjj you're getting that error during the install process? That didn't happen to me. Can you give me more details about how you're installing? Maybe I can help if I can replicate the error |
Sorry didn’t form that sentence properly. The installation is fine, but when I run a ggplot command, that’s when I get the same error.
… On Jul 19, 2017, at 6:27 AM, Aditya ***@***.***> wrote:
@chethanjjj <https://github.com/chethanjjj> you're getting that error during the install process? That didn't happen to me. Can you give me more details about how you're installing? Maybe I can help if I can replicate the error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#612 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AM-0jPT4EH5OQQXdM1tcvz88HLyreIUTks5sPgQrgaJpZM4OT-FO>.
|
I am seeing the same issue - I think it is because L602 in
|
Thanks @pwrosa that makes sense. I could reproduce the error by running: ggplot(diamonds, aes(x='clarity', fill='cut')) + geom_bar() I've opened a PR to fix the issue |
It is October already and |
Any news regarding this issue? |
On line 602 of ggplot/ggplot.py, I changed the line from
to
and it worked for my use case. Hope that helps.. |
Has this issue been fixed in the code? Seems only one line needs to be fixed. |
There hasn't been an update to |
Sort is obsolete in pandas package, must use sort_values: return df[cols].sort(columns='order') -> return df[cols].sort_values(by='order') |
If anyone is still dependent on this package, I would suggest moving over to Seaborn :) |
@chethanjjj Though it's an awesome plotting library, for me it's the Grammar in R's ggplot2 that matters, so Seaborn won't suffice. If you're in my camp, try Plotnine, which I found from this tutorial from @pteehan. |
OMG!! Starting with Seaborn, really sad about this thread... |
If people are interested in playing whack-a-mole through the python, in addition to [jmcarpenter2 's] (#612 (comment)) comment, there is another instance of Change
to
|
I have the same problem. It's so sad to not have updates for this package ! |
SAD THREAD |
In case it helps anyone, I received a similar error when trying to import ggplot:
Here are my pkg vers:
I first tried this, but it did not resolve my error:
Because "There hasn't been an update to master since Nov 2016. At this point I think it's safe to say this package isn't supported anymore" - @asbhat , I switched over to plotnine, which (as far as I can tell) has the same API as ggplot. Life is good again. |
I had same issue and fixed it as below:
|
Here's the error I get. This is due to dataframe api change.
The text was updated successfully, but these errors were encountered: