Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

show which columns in dataframe have NA

In [71]: df
Out[71]:
     a    b  c
0  NaN  7.0  0
1  0.0  NaN  4
2  2.0  NaN  4
3  1.0  7.0  0
4  1.0  3.0  9
5  7.0  4.0  9
6  2.0  6.0  9
7  9.0  6.0  4
8  3.0  0.0  9
9  9.0  0.0  1

In [72]: df.isna().any()
Out[72]:
a     True
b     True
c    False
dtype: bool
Comment

PREVIOUS NEXT
Code Example
Python :: python list max value 
Python :: change value of column in pandas 
Python :: how to reverse string in python 
Python :: reverse the string in python 
Python :: joining two lists in python using for loop 
Python :: for loop to while loop in python 
Python :: quiz game in python 
Python :: django template filter 
Python :: python symbol 
Python :: how to run multiple python files one after another 
Python :: python string format_map 
Python :: how to append variable python 
Python :: how to join two tuples in python 
Python :: python how to add 2 numbers 
Python :: python string: immutable string 
Python :: autopy python not installing 
Python :: read header of csv file python 
Python :: python type checking boolean 
Python :: python array spread 
Python :: pyhton mcq 
Python :: use decorator in class python 
Python :: how to separate date and time in python 
Python :: optimize python code 
Python :: Math Module radians() Function in python 
Python :: propositional logic python 
Python :: discord api python putting ids in a list 
Python :: File "main.py", line 21 print("total harga:idr", bakso bulat +str Minuman Drink): ^ SyntaxError: invalid syntax 
Python :: how to count categories in a csv command line 
Python :: sphinx select code ' 
Shell :: error: cannot install "code": classic confinement requires snaps under /snap or 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =