Open
Description
This code works:
import pandas as pd
from ggplot import *
df = pd.DataFrame(data = {'facet_var': [1,2,3,4,5,6,7,8,9,1], 'hist_var': [1,2,3,4,5,6,7,8,9,0]})
ggplot(aes(x='hist_var'), data = df) + geom_histogram() + facet_wrap('facet_var')
This code fails with error: Bin edges must be unique: array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
import pandas as pd
from ggplot import *
df = pd.DataFrame(data = {'facet_var': [1,2,3,4,5,6,7,8,9,10], 'hist_var': [1,2,3,4,5,6,7,8,9,0]})
ggplot(aes(x='hist_var'), data = df) + geom_histogram() + facet_wrap('facet_var')
The only thing that has changed is removing the 0 from 10 in 'facet_var'.
Metadata
Metadata
Assignees
Labels
No labels