Calculate and plot 95% range of data on scatter plot in Python
问题 I wish to know, for a given predicted commute journey duration in minutes, the range of actual commute times I might expect. For example, if Google Maps predicts my commute to be 20 minutes, what is the minimum and maximum commute I should expect (perhaps a 95% range)? Let's import my data into pandas: %matplotlib inline import pandas as pd commutes = pd.read_csv('https://raw.githubusercontent.com/blokeley/commutes/master/commutes.csv') commutes.tail() This gives: We can create a plot easily