Advertisement
elena1234

replace all NaN with zeros in Python

Feb 10th, 2024
952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. df['budget_musd'] = df['budget_musd'].fillna(0)
  2. df['revenue_musd'] = df['revenue_musd'].fillna(0)
  3. df['vote_count'] = df['vote_count'].fillna(0)
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement