Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas fillna multiple columns

df.fillna({'Name':'.', 'Age':0}, inplace=True)
Comment

pandas fillna multiple columns

df.apply(lambda x: x.fillna(0) if x.dtype.kind in 'biufc' else x.fillna('.'))
Comment

PREVIOUS NEXT
Code Example
Python :: get_permissions 
Python :: tables in jinja template 
Python :: Function to plot as many bars as you wish 
Python :: textrank python implementation 
Python :: visual studio code import library python 
Python :: numpy insert 
Python :: pd.cut in pandas 
Python :: creating a dictionary 
Python :: django create multiple objects 
Python :: loading bar 
Python :: django password hashing 
Python :: when to use finally python 
Python :: how to store the variable in dictionary 
Python :: datetime convert python 
Python :: cbind arrays python 
Python :: pytest monkeypatch 
Python :: python look for image on screen 
Python :: pairs with specific difference 
Python :: interviewbit with Python questions solutions 
Python :: create an empty list in python 
Python :: drop columns pandas dataframe 
Python :: or operator in python 
Python :: how to add new column in django 
Python :: function composition python 
Python :: scale in numpy 
Python :: NaN stand for python 
Python :: string count in python 
Python :: join tables in django orm 
Python :: python string length 
Python :: how to import packages in python 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =