1. Bike Sharing Analysis
Activity 1.01: Investigating the Impact of Weather Conditions on Rides
- Import the required libraries and the initial
hour
data:# import libraries import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import pearsonr %matplotlib inline # load hourly data data = pd.read_csv('https://raw.githubusercontent.com/'\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'PacktWorkshops/'\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'The-Data-Analysis-Workshop/master/'\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'Chapter01/data/hour.csv')
- Create a new column in which
weathersit
is mapped to the four categorical values specified in Exercise 1.01, Preprocessing Temporal and Weather Features...