Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change a coolumn datatype in pandas

df = df.astype({"Column 1": float, "Column 2": int})
Comment

PREVIOUS NEXT
Code Example
Python :: Adding two lists using map() and Lamda Function 
Python :: python bot ban script 
Python :: Merge 2 or more notebooks into one 
Python :: odoo docker addons path 
Python :: if any number python 
Python :: bytestring python 
Python :: How to take multiple inputs in one line in python using list comprehension 
Python :: horizontal barplot 
Python :: minio python make an object 
Python :: python np array get dimantion 
Python :: python venv 
Python :: re sub python 
Python :: cv2.imwrite path 
Python :: pytorch torchaudio torchvision cu113 
Python :: using python for rest api 
Python :: any() and all() 
Python :: convert timestamp to period pandas 
Python :: how to loop function until true python 
Python :: state capitals python 
Python :: python black 
Python :: pandas trim string of all cells 
Python :: how to take first half of list python 
Python :: print in pytest python 
Python :: python game github 
Python :: creating python classes 
Python :: reactstrap example 
Python :: tkinter textboxe position 
Python :: networkx node attribute from a dataframe 
Python :: create a flask app 
Python :: iloc pandas 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =