Visualization, matplotlib, seaborn, plotly, pyecharts etc.

  1. Painting frequency histograms

import pandas as pd
import matplotlib.pyplot as plt
Series.value_counts().plot.bar()
plt.show()

value_counts () of the parameters as follows:

sort, whether the number of times the sort of statistics, the default is descending (from largest to smallest) (bool value)

ascending, descending or ascending order of selection. (Bool value)

dropna, whether or not to remove the null value (bool value)

the normalize, the frequency of occurrence is to be converted into a frequency, for example, a total of 100 times, 10 times 1 occurs, is 10%, 0.1

Guess you like

Origin www.cnblogs.com/likedata/p/11915759.html