Link to my previous video on how to locate missing data in a DataFrame:
https://youtu.be/LtzOV_7HQmY
Link to the code in this vide:
https://github.com/SalehGoodarzian/Data-Science-in-Python/tree/85682d7ef83b695244c669e7caeec7cd7ebe6b85/Project%2014
Solution to practice questions in this video:
Question 1:
m = df['Mathematics'].isna()
hw1 = df.loc[m]
print(hw1)
print(hw1.mean(numeric_only=True, axis=1))
Question 2:
hw2 = df['Arts'].mean(numeric_only=True)
print(hw2)
Download
0 formats
No download links available.
Working with missing data in a DataFrame in Python with two practice questions | NatokHD