Advertisement
ShrekOP

Assg16

Dec 14th, 2022
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import pandas as pd
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4.  
  5. data = pd.read_csv("tested.csv")
  6. print(data)
  7.  
  8. print(data.dtypes)
  9.  
  10. print(data.head(10))
  11.  
  12. print(data.count())
  13.  
  14. plt.hist(data.PassengerId,weights=data.Fare)
  15.  
  16. print(plt.title('Price Distribution'))
  17. print(plt.show())
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement