In [1]:
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
In [23]:
df = pd.read_csv('train.csv')
df = df.loc[df['season'].isin([1, 2, 3, 4])]
df.tail()
Out[23]:
In [17]:
df.shape
Out[17]:
In [18]:
df = df.cumsum()
plt.figure(); df.plot();
In [21]:
np.unique(df['weather'])
Out[21]:
In [24]:
df.plot(kind='scatter', y='count', x='season')
Out[24]:
In [26]:
df.plot(kind='scatter', y='count', x='weather')
Out[26]:
In [27]:
df.plot(kind='scatter', y='count', x='temp')
Out[27]:
In [ ]: