Question: Use the dataframe created in the next code cell and complete tasks 1 - 6 to generate the following figure: 1 . Create a scatterplot,
Use the dataframe created in the next code cell and complete tasks to generate the following figure:
Create a scatterplot, where the xaxis corresponds to the default index of the dataframe, and the yaxis represents the values from the column Y
Calculate the mean of Y and show it as a solid horizontal line on the graph.
Calculate the standard deviation of Y and draw two dashed lines, each representing one standard deviation away from the mean.
Set xaxis and yaxis limits as and respectively.
Enhance plot clarity by removing ticks on the xaxis.
Set the legend in the bottomright corner of the graph.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
tempX:::::::::::Y:::::::::::
dfpdDataFrametemp
solution here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
