Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to check datatype of column in dataframe python

df['DataFrame Column'].dtypes
Comment

check column type pandas

print(df.dtypes)

"""
You will see something like this:

Col1    float64
Col2     object
	.
    .
    .
Col_n     int64
dtype: object
"""
Comment

PREVIOUS NEXT
Code Example
Python :: install qt python 
Python :: wxpython make window stay on top 
Python :: cv2 resize 
Python :: python datetime minus days 
Python :: get ip from request django 
Python :: check iterable python 
Python :: how to check sklearn version 
Python :: python - remove repeted columns in a df 
Python :: install python homebrew 
Python :: matplotlib plot data 
Python :: scikit learn ridge classifier 
Python :: wait for input python 
Python :: python - subset specific columns name in a dataframe 
Python :: is string python 
Python :: Removing punctuation with NLTK in Python 
Python :: snowflake python connector error handling 
Python :: convert c_ubyte_Array_ to opencv 
Python :: detect stop codon 
Python :: variable inside class not detecting global variable in python 
Python :: import pandas 
Python :: pandas show complete string 
Python :: pandas plot use index as x 
Python :: numpy count the number of 1s in array 
Python :: x= [10] def List_ex(): x.append(20) def add_list(): x=[30,40] x.append(50) print (x) List_ex() print (x) add_list() print (x) 
Python :: pandas remove prefix from columns 
Python :: convert string array to integer python 
Python :: matplotlib 3.0.3 wheel file 
Python :: erreur install pyaudio 
Python :: youtube to mp3 python 
Python :: how to make a flask server in python 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =