import pandas as pd
import numpy as np
from sklearn.neighbors import KNeighborsClassifier
电影分类
动作片-武打镜头
爱情片-接吻镜头
数据:武打镜头和接吻镜头的次数
标签:分类
1、引入素材,通过pandas引入excel方法读入素材
amovie=pd.DataFrame[pd.read_excel('movie.xlsx')]
amovie
import pandas as pd
import numpy as np
from sklearn.neighbors import KNeighborsClassifier
amovie=pd.DataFrame[pd.read_excel('movie.xlsx')]
amovie