Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python line chart

import matplotlib.pyplot as plt
   
Year = [1920,1930,1940,1950,1960,1970,1980,1990,2000,2010]
Unemployment_Rate = [9.8,12,8,7.2,6.9,7,6.5,6.2,5.5,6.3]
  
plt.plot(Year, Unemployment_Rate)
plt.title('Unemployment Rate Vs Year')
plt.xlabel('Year')
plt.ylabel('Unemployment Rate')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: get current date in python 
Python :: python readlines without n 
Python :: how to find the minimum value in a dictionary python 
Python :: pandas update with condition 
Python :: python gui programming using pyqt5 
Python :: create a window turtle python 
Python :: print colored text python 
Python :: python opencv number of frames 
Python :: python press key to break 
Python :: make string numeric pandas 
Python :: standardscaler into df data frame pandas 
Python :: sort python nested list according to a value 
Python :: python MinMaxScaler() 
Python :: numpy find rows containing nan 
Python :: how to separate year from datetime column in python 
Python :: display np array as image 
Python :: pandas append csv files a+ 
Python :: print today time python 
Python :: python - convert a column in a dataframe into a list 
Python :: python - convert index to a column 
Python :: wait function python 
Python :: open image in numpy 
Python :: horizontal line for pyplot 
Python :: install mamba conda 
Python :: python url join 
Python :: flask run app reset on change 
Python :: dictionary with numbers python 
Python :: STandardScaler use example 
Python :: how to rewrite minute in datetime python 
Python :: export python pandas dataframe as json file 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =