HOME/Articles/

matplotlib example data science imports (snippet)

Article Outline

Python matplotlib example 'data science imports'

Modules used in program:

  • import statsmodels.api as sm
  • import numpy as np
  • import matplotlib.pyplot as plt
  • import pandas as pd

python data science imports

Python matplotlib example: data science imports

import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import statsmodels.api as sm

#mathplotlib inline code for Jupyter
%matplotlib inline