Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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)
 
PREVIOUS NEXT
Tagged: #pd #columns
ADD COMMENT
Topic
Name
9+6 =