Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

change data type python


data_types_dict = {'id': str}
df = df.astype(data_types_dict)
  
# checking the data types
# using df.dtypes method
df.dtypes
 
PREVIOUS NEXT
Tagged: #change #data #type #python
ADD COMMENT
Topic
Name
2+5 =