Skip to main content

Plotting

Plotting and visualization of DataFrames.

df.plot(kind='hist', y=data_col, bins=the_bins, density=True, ec='w')

Creates a histogram using a DataFrame.

df.plot(kind='scatter', x=data_col, y=data_col)

Creates a scatter plot using a DataFrame.

df.plot(kind='bar', x=data_col, y=data_col)

Creates a bar plot using a DataFrame.

df.plot(kind='line', x=data_col, y=data_col)

Creates a line plot using a DataFrame.