HOME/Articles/

matplotlib example ml project versions (snippet)

Article Outline

Python matplotlib example 'ml project versions'

Modules used in program:

  • import sklearn
  • import statsmodels
  • import pandas
  • import matplotlib
  • import numpy
  • import scipy
  • import sys

python ml project versions

Python matplotlib example: ml project versions

# Python
import sys
print('Python: {}'.format(sys.version))
# scipy
import scipy
print('scipy: %s' % scipy.__version__)
# numpy
import numpy
print('numpy: %s' % numpy.__version__)
# matplotlib
import matplotlib
print('matplotlib: %s' % matplotlib.__version__)
# pandas
import pandas
print('pandas: %s' % pandas.__version__)
# statsmodels
import statsmodels
print('statsmodels: %s' % statsmodels.__version__)
# scikit-learn
import sklearn
print('sklearn: %s' % sklearn.__version__)