Skip to content
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

facet_grid fail with a category type #665

Open
mxardre opened this issue Sep 8, 2019 · 0 comments
Open

facet_grid fail with a category type #665

mxardre opened this issue Sep 8, 2019 · 0 comments

Comments

@mxardre
Copy link

mxardre commented Sep 8, 2019

`
File "", line 102, in
print(p)

File "python3.7/site-packages/ggplot/ggplot.py", line 116, in repr
self.make()

File "python3.7/site-packages/ggplot/ggplot.py", line 636, in make
layer.plot(ax, facetgroup, self._aes, **kwargs)

File "python3.7/site-packages/ggplot/geoms/geom_histogram.py", line 48, in plot
params['bins'] = np.arange(np.min(x), np.max(x) + self.params['binwidth'], self.params['binwidth'])

ValueError: arange: cannot compute length`

I am trying to do a facet_grid of a dataframe. To order the facet I have follow this : https://stackoverflow.com/questions/42763667/ordering-the-facet-in-python-ggplot
This throw the error above and the facet fail.
Does the pb come from the category type of the pd.dataframe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant