text_plain_output_1.png image_output_1.png
from sklearn import cross_validation

from sklearn import preprocessing

import pandas as pd

df = pd.read_csv('../input/crypto-markets.csv', parse_dates=['date'], index_col='date')

btc = df[df['symbol'] == 'BTC']
btc.drop(['volume', 'symbol', 'name', 'ranknow', 'market'], axis=1, inplace=True)

btc.isnull().any()

btc.shape

from sklearn import preprocessing
btc.dropna(inplace=True)
X = btc.drop('Price_After_Month', axis=1)
X = preprocessing.scale(X)
y = btc['Price_After_Month']

from sklearn import cross_validation
X_train, X_test, y_train, y_test = cross_validation.train_test_split(X, y, test_size=0.3, random_state=101)