You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpandasaspdimportmatplotlib.pyplotaspltdf=pd.DataFrame({
'width': [0.7, 0.2, 0.15, 0.2, 1.1],
'length': [1.5, 0.5, 1.2, 0.9, 3]
}, index= ['pig', 'rabbit', 'duck', 'chicken', 'horse'])
# Whether or not `column` is passed the order is still reordered to alphabetical.df.hist(column=['width','length'])
plt.show()
Problem description
When plotting histograms from a DataFrame (see code-snippet above) the order of subplots is not maintained. Passing column does not appear to have any effect on the ordering either.
Expected Output
Plots/subplots order equals column order in DataFrame.
Code Sample, a copy-pastable example if possible
Problem description
When plotting histograms from a DataFrame (see code-snippet above) the order of subplots is not maintained. Passing
column
does not appear to have any effect on the ordering either.Expected Output
Plots/subplots order equals column order in DataFrame.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: