Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

as type in pandas

df.astype({'col1': 'int32'}).dtypes
col1    int32
col2    int64
dtype: object
Comment

df astype

df.astype('int64').dtypes #www.athulmathew.com
Comment

PREVIOUS NEXT
Code Example
Python :: How to read PDF from link in Python] 
Python :: get absolute url 
Python :: tkinter icon 
Python :: letters to numbers python 
Python :: how to reset username and password in django admin 
Python :: os file size python 
Python :: streamlit bold 
Python :: how to insert item at specifc index python 
Python :: python split by first match 
Python :: print whole list python 
Python :: python generate pdf from template 
Python :: replace all characters in a string python 
Python :: how to clear the list in python 
Python :: getenv python 
Python :: how to check if a number is even or odd in python 
Python :: how to get scrapy output file in json 
Python :: pandas count empty string values 
Python :: Python Selenium import WebElement 
Python :: os path splitext 
Python :: python @property 
Python :: pyautogui locatecenteronscreen mac fix 
Python :: print environment variables windows python 
Python :: gzip folder python 
Python :: scroll to element selenium python 
Python :: python ffmpeg get video fps 
Python :: pandas read excel certain columns 
Python :: dataframe unstack 
Python :: python turn positive into negative 
Python :: pyjwt 
Python :: decrypt vnc password 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =