2 Upvotes

Pandas Dataframe Histograms

Python
Visualisation & EDA

Outputs a histogram for every numerical columns in a dataframe on a 9 x 3 layout.

df.hist(figsize=(15,30),layout=(9,3))
{{ snippet.title}

By analyseup - Last Updated Jan. 12, 2022, 12:30 a.m.

Did you find this snippet useful?

Sign up to bookmark this in your snippet library

COMMENTS

luv2lrn
Nov. 21, 2021, 9:14 p.m.

Shouldn't the layout be (3,3) for this image?

RELATED SNIPPETS
Top Contributors
75