text_plain_output_1.png image_output_1.png
from sklearn.model_selection import train_test_split

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import pandas as pd
import numpy as np
import math
import operator
df = pd.read_csv('../input/Iris.csv')
df.shape
from collections import Counter

from sklearn.model_selection import train_test_split
x = df[['SepalLengthCm']]
y = df['Species']
x_train, x_test, y_train, y_test = train_test_split(x, y, train_size=0.33)
len(y_train)