![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuL8e-6O5L82MlkdBP_R9SM2Hi5NcIcI4Wa05squNMhBT23yrtKhyphenhyphenaCSXw5ioXBtKo4tXEN5bQT1Rlt1xjCR0JPyZ-lQGRxq-lSPzjk8oWQEKA8Q3qrHZRQSkJn7ogce5juFWAJYsU8ko/w640-h389/download+%252812%2529.png)
Csv(graph in python) 2
How To Print scatter graph:
1-Make any file suppose i make a file named as (data) and add data init thensave as csv file.
2-import pandas as pd.
3-import matblotlib.pyplot as plt
4-take any variable i take(df) which is equal to pd.read_csv("file")
5-df.plot() inside plot parentheses write kind="scatter" then x = "Duration" ,y="Maxpulse"
Note: You should take any kind
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("data.csv")
df.plot(kind = 'scatter', x = 'Duration', y = 'Maxpulse')
plt.show()
Output: