Using Python for data analysis--histogram

Source: Internet
Author: User


DataFrame.hist(DataColumn=noneBy=nonegrid=trueXlabelsize=noneXrot=noneYlabelsize=noneYrot=none,Ax=noneSharex=falseSharey=falseFigsize=noneLayout=nonebins=10**kwds)


Data : DataFrame

column : string or sequence strings or sequences


by: object, optional

If passed, then used to form histograms (histogram) for separate groups

Grid : Boolean, default True grid line, defaults to use


xlabelsize : int, default None

If specified changes the x-axis label size

Xrot : float, default None

Rotation of X axis labels

ylabelsize : int, default None

If specified changes the y-axis label size

Yrot : float, default None

Rotation of Y axis labels

ax : Axis object, default is empty

Sharex : boolean, default True if Ax is None else False

In case subplots=true, share x axis and set some x axis labels to invisible; Defaults to True if AX is None otherwise False if a ax is passed in; Be aware, which passing in both an ax and sharex=true would alter all x axis labels for all subplots in a figure!

Sharey : boolean, default False

In case subplots=true, share Y axis and set some Y axis labels to invisible

figsize : Tuple

The size of the figure to create in inches by default

layout : tuple, optional

Tuple of (rows, columns) for the layout of the histograms

Bins : integer, default 10

Histogram (bar chart) Number of bins, default is 10

Kwds : Other plotting keyword arguments

To is passed to hist function


Using Python for data analysis--histogram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.