Advertisement
elena1234

na values and non-null values in Python

Oct 8th, 2024 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | Source Code | 0 0
  1. # Get the amount of NA-values per column
  2. listings.isna().sum(axis = 0)
  3.  
  4. # Get the amount of non-null values per column
  5. non_null_count = df.notna().sum()
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement