Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pd.read_excel column data type

import pandas as pd

df = pd.read_excel('Book1.xlsx',sheetname='Sheet1',header=0,converters={'names':str,'ages':str})
>>> df
       names ages
   0   bob   05
   1   tom   4
   2   suzy  3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #data #type
ADD COMMENT
Topic
Name
4+1 =