Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change column type to string in pandas

# Convert "Fee" from int to string
df = df.astype({'colomnName':'string'})
print(df.dtypes)
Source by sparkbyexamples.com #
 
PREVIOUS NEXT
Tagged: #change #column #type #string #pandas
ADD COMMENT
Topic
Name
6+2 =