HOME/Articles/

matplotlib example iris-imports (snippet)

Article Outline

Python matplotlib example 'iris-imports'

Modules used in program:

  • import matplotlib.pyplot as plt
  • import seaborn as sns
  • import numpy as np
  • import pandas as pd

python iris-imports

Python matplotlib example: iris-imports

%matplotlib inline

import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier

df = pd.read_csv('Iris.csv')