Here is my code:
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('./Desktop/bike-sharing-dataset/hour.csv', delimiter = ',')
x = df['hr']
y = df['cnt']
# Dot plot created using scatter plot
plt.figure(figsize=(15, 10))
ax = sns.scatterplot(x, y, palette="RdYlGn")
plt.xlim([-1, 24])
plt.ylabel("Total Rental Count")
plt.xlabel("Hour")
plt.title("every day-rental count")
plt.show()
I'd like to get something like this:
I have the upper and lower bounds calculated like this:
def hr_demand_upper_bound(self):
self.upper_bound = self.hourly_average + 1.96*self.hourly_std/(self.hourly_record)**0.5
def hr_demand_lower_bound(self):
self.lower_bound = self.hourly_average - 1.96*self.hourly_std/(self.hourly_record)**0.5