Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get int64 column pandas

# Use select_dtypes with np.number for select all numeric columns:
cols = [df.select_dtypes([np.number]).columns]
print (list(cols))

# Here is possible specify float64 and int64:
cols = [df.select_dtypes([np.int64,np.float64]).columns]
print (cols)
Comment

PREVIOUS NEXT
Code Example
Python :: find closest color python 
Python :: circular array python 
Python :: glob list all files in directory 
Python :: rum system commands python 
Python :: how to convert a byte array to string in python 
Python :: remove all integers from list python 
Python :: print str and float python 
Python :: sum of column in 2d array python 
Python :: python randomly chose user agent 
Python :: how to take multiple input in list in python 
Python :: pangram function 
Python :: program arguments python 
Python :: dir template 
Python :: get column number in dataframe pandas 
Python :: python how to get the screen size 
Python :: get first line of file python 
Python :: pygame caption 
Python :: python list of colors 
Python :: python try then change something and try again if fails 
Python :: show integer seabron heatmap values 
Python :: Python program to get the file size of a plain file. 
Python :: python random integer in range 
Python :: python pyramid 
Python :: redirect stdout to variable python 
Python :: python list to string without brackets 
Python :: how to sort tuples in list python 
Python :: compile python to pyc 
Python :: import word_tokenize 
Python :: how to use inverse trigonometric functions in python 
Python :: python datetime strftime 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =