text_plain_output_1.png image_output_1.png
import pandas as pd

daily_Data = pd.read_csv('../input/train.csv')

daily_Data.shape

daily_Data.dtypes

daily_Data.columns

daily_Data.isnull().sum()

daily_Data.season.value_counts()

daily_Data.holiday.value_counts()

daily_Data.workingday.value_counts()

daily_Data.weather.value_counts()

season = pd.get_dummies(daily_Data['season'])
daily_Data = pd.concat([daily_Data, season], axis=1)

weather = pd.get_dummies(daily_Data['weather'])
daily_Data = pd.concat([daily_Data, weather], axis=1)

daily_Data.shape

daily_Data = daily_Data.drop('season', axis=1)
daily_Data = daily_Data.drop('weather', axis=1)
daily_Data = daily_Data.drop('casual', axis=1)
daily_Data = daily_Data.drop('registered', axis=1)
labels = daily_Data.pop('count')

daily_Data.head()