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 :: get_multiple_items_from_list 
Python :: example of python application from github to docker image 
Python :: multiplication objects 
Python :: np v stack 
Python :: Solve abstract model relations conflicts while using inheritance 
Python :: how does gas exchange happen in the alveoli 
Python :: create new model description odoo 
Python :: # merge two dictionaries 
Python :: asdict that ignore sentinel 
Python :: evaluacion PCA python 
Python :: Doubleclick .py Prep 
Python :: Pandas number of columns display settings 
Python :: load xgb 
Python :: saving a dta file 
Python :: auto reload exml odoo 13 
Python :: Code Example of Comparing None with None type 
Python :: List Comprehension simple example 
Python :: pandas check if string has only spaces 
Python :: keyword argument python 
Python :: Algorithms and Data Structures in Python (INTERVIEW Q&A) 
Python :: python certificate verify failed unable to get local issuer certificate nltk 
Python :: attach short list to pandas dataframe with filler 
Python :: Python NumPy rollaxis Function Example 
Python :: django.db.utils.operationalerror: (1051, "unknown table 
Python :: Python NumPy concatenate Function Example when axis equal to 0 
Python :: Python NumPy insert Function Example Using insertion at different points 
Python :: Python __ne__ 
Python :: Open S3 object as string in Python 3 
Python :: Convertion of number into binary using NumPy binary_repr 
Python :: How to run a method before/after all class function calls with arguments passed? 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =