Pandas drawing

Time:2021-12-4

objective

  • Just to record the drawing skills encountered in learning

    Draw density map

  • Sometimes we need to count the frequency of each value in a column, that is, the density map
  • Drawing method

    • raw data
      Pandas drawing
      We want to plot the value distribution
    • code

      import matplotlib.pyplot as plt
      DF. Value. Plot (kind ='kde ', color =' Red ', label =' nuclear density diagram ')
      plt.show()
    • graphical
      Pandas drawing