HOME/Articles/

matplotlib example General info (snippet)

Article Outline

Python matplotlib example 'General info'

Modules used in program:

  • import matplotlib.pyplot as plt
  • import pandas as pd

python General info

Python matplotlib example: General info

import pandas as pd
import matplotlib.pyplot as plt
tax_filers = pd.read_csv('/Users/ngocphan/PycharmProjects/Personal_tax/number_of_filers.csv')
columns = tax_filers.columns[1:6]
y_pos = list(tax_filers.iloc[14, 1:6])