我不知道为什么会出现此错误“ TypeError:unhashable type:'slice'”

时间:2020-02-17 07:21:01

标签: python list scikit-learn

import numpy as np

import pandas as pd

import matplotlib.pyplot as plt

weather= pd.read_csv('기상데이터임.csv', engine='python')

기상데이터임=天气数据集

from sklearn.linear_model import LinearRegression

X = weather[:,0].reshape(-1,1)
y= weather[:,1]

model= LinearRegression()

model.fit(X,y)

model.coef_, model.intercept_

我想可视化需要削减数据集

0 个答案:

没有答案