question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ggplot doesn't work with latest pandas dataframe

See original GitHub issue

Here’s the error I get. This is due to dataframe api change.

'DataFrame' object has no attribute 'sort'

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:9
  • Comments:24

github_iconTop GitHub Comments

11reactions
MarcoNiemanncommented, Oct 6, 2017

It is October already and pandas advanced to version 0.20.3. This problem should be fixed as it renders ggplot unusable for a lot of use-cases.

5reactions
asbhatcommented, Jul 18, 2017

This is actually already fixed in the code (https://github.com/yhat/ggpy/commit/9d00182343eccca6486beabd256e8c89fb0c59e8). If you

$ pip uninstall ggplot
$ pip install git+git://github.com/yhat/ggpy.git@9d00182343eccca6486beabd256e8c89fb0c59e8 --no-cache

it should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ggplot is not plotting dataframe - Stack Overflow
It is working for me. Try following import pandas as pd from ggplot import * df = pd.DataFrame([{"day": 20150203, "ndcg@k": 0.245559, ...
Read more >
Plotting with ggplot for Python - Introduction to Python Workshop
ggplot has a special technique called faceting that allows to split one plot into multiple plots based on a factor included in the...
Read more >
Reorder a variable with ggplot2 - The R Graph Gallery
This post describes how to reorder a variable in a ggplot2 chart. Several methods are suggested, always providing examples with reproducible code chunks....
Read more >
How To use GGPlot in Python - anıl kaynar - Medium
Sadly we don't have any easy solution. Some naive ggplot base implementation is in PyPI however it's not ggplot. We use Rpy2 in...
Read more >
Using ggplot in Python: Visualizing Data With plotnine
You'll work with the following datasets in this tutorial: economics : A time series of US economic data; mpg : Fuel economy data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found