Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pd get non-numeric columns

print("Numeric columns:")
print(df.select_dtypes(include='number').columns)
print()
print("Non-numeric columns:")
print(df.select_dtypes(exclude='number').columns)
Comment

PREVIOUS NEXT
Code Example
Python :: screen size python 
Python :: python typed list 
Python :: pd dataframe get column names 
Python :: import pyplot python 
Python :: swapping array location in python 
Python :: cast tensor type pytorch 
Python :: how to create requirements.txt django 
Python :: flask render_template 
Python :: django create token for user 
Python :: how to extract numbers from a list in python 
Python :: array length godot 
Python :: python - oordinated universal time 
Python :: how to create random tensor with tensorflow 
Python :: min of numpy array 
Python :: install from github 
Python :: pandas rename multiple columns 
Python :: taking multiple input in python 
Python :: python remove form list 
Python :: how to check if file exists pyuthon 
Python :: pandas df row count 
Python :: Delete file in python Using the pathlib module 
Python :: python import beautifulsoup 
Python :: Concatenate Item in list to strings 
Python :: khan academy 
Python :: how to read unicode in python 
Python :: dataframe summary pandas 
Python :: how to pair up two lists in python 
Python :: check python version kali linux 
Python :: program arguments python 
Python :: jupyter upload folder 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =