object to int64 pandas

Solutions on MaxInterview for object to int64 pandas by the best coders in the world

showing results for - "object to int64 pandas"
Enrico
27 Sep 2016
1>>> df['purchase'].astype(str).astype(int)
2
Francesca
14 Sep 2019
1# convert Series
2my_series = pd.to_numeric(my_series)
3
4# convert column "a" of a DataFrame
5df["a"] = pd.to_numeric(df["a"])
6
Adrián
29 Nov 2019
1df.astype(int)
queries leading to this page
change type of the colums pandasdataframe columns to intpandas column change typedf as typepandas astype 28float 29make a column of pandas integerconvert column to numeric pandasconvert int pandaschange data type of df columnhow to convert pandas column price to integerchanging data type of column pd from real to intpandas type columnconvert values in column of dataframe to intobject to int pandaspandas set column type to integerastype 28 29 pandas columnsconvert column to numeric dataframepandas float64 to objectconvert datatype of pandas column to intchange type to columns pandasastype int64 pandascolumn dataframe to intpandas change object to int astype 28object 29change data type pandas to intcast dtype to int pandaspandas columns astype intpython pandas make column intpandas change data typoe from object to intpandas convert d c3 a2t typechange type of column pandaschange to object type pandaspandas set column type to numerichow to convert object into int in python pandasdata type of dataframe columnconvert object to int64 python pandasconvert to integer whole column pythonpandas convert column to int typehow to change object to int in pandashow to set int pandas columnhow to define a pandas dataframe column typechanging dataframe values to intastype 28 29 pandasvonent to intger colum pandasconver object column to integer pythonchange data type to int pandasconvert object tuype to int type in pandas 2acast pandas dataframe to intchanging datatype of a column in pandasint64 to int pandaspandas set typechange data type to float pandaspandas float to int64pandas cast object to inthow to change df object columns to intchange the type of data in columns in dataframeconvert to int python pandaspandas specify column typechange the data types of all columns in pandascolumn type pandasconvert a column in pandas to intdataframe float64 pythondf astypechange int column to object pandasconvert type to int varios columns pandaspandas dataframe convert one string column to integerpandas set column to integerhow to convert a column into int in pandaschange datatype of column pandaspandas change object of type int64pandas change column type to int64change dataframe column to objectcast pandas to integerastype pandas to intconverting a dataframe column 27s values to into type values change in pandaschanging string into integer datatype pythonpandas convert dataframe to intdataframe type columnscast column from string to int pandaspython dataframe convert string column to intpandas cast an object to intconvert column into int in pythonconvert to int pandas columnpandas convert all numeric columns to int astypehow to convert to int column pandaspython convert column to seriespandas dataframe column to intpandas change column from string to intpandas dataframe type of a columnpandas define column typeconvert a column dataframe value to int in pandaspandas cast int64 to inthow to convert column to int in pandaspython change type foalr to inthow can change dataframe column types str to integerdefine the type of a set of pandas columnsdataframe column as inthow to give column type in pandaspandas convert column to intpandas convert selected columns intastype data pandas inthow to convert pandas price column to integerpython astype inthow to convert a column to int in pandasconvert column to numeric pandas syntaxpandas encode column to integerobject to integer convert column pandasobject to int pandas dataframedataframe define column type astype 28 29 in pandaschange type to integer of column pandaspandas convert column from string to intpandas changing data typepd type of columnastype 28 29 integer pandasdataframe column to intdf change column type object to intset dataframe column to integerchange datatype of column in pandasconvert string column to integer in pandasdf astype 28np object 29how to change type of pandas column from string to intcolumn type in pandas changepandas change dataframe column typepython dataframe convert column to intpandas treat column as integerconvert object type to int pandasdataframe convert object column to int columnpandas make column integerchoose type of column pandasdf column to intger pandastype columns pandaschange data type of a column in pandasconvdrt all data types to numbersastype pandasget dtype of column pandascovert data fram to intpandas column values to intchange type column pandaspandas change data type to intset pandas column to intobject to integer in pandaspandas changing data type to intchange object to int64 pandasconvert a dataframe column to integerpandas set column type for all columnschange a column type pandaschange dtype pandaspython change data type from int8 to integerchange type of pandas columncast ins64 to int pandashow to convert a column in pandas to numeric valuesset column type with dataframespandas set column type integerpandas table object to intconvert all object columns to int pandaspandas object to int64pandas change data type columndataframe astypeastype floatpandas convert a column with na to intchanging column datatype in pandashow to convert each column in a dataframe to intpandas column into numberhow to change object data type to int in pythonpandas convert int64 to objectpandas set dataframe column data typepython convert all columns of a dataframe to intobject value to int64 value pandaspandas convert column to int and set as indexpython change data type of dataframe columnchange dtype of pandas columnchange a column to int pandaspandas df change column typecast column to type pandas 3d df 5b 27subject marks 27 5d astype 28float 29dtype int pandaschange the data type of a column pandasformat a column in same datatype in pandashow to convert values in a column to numeric pandaschaning datay type of pandas columnhow to int a column in pandashow to change the column type in pandaspandas df lookup astype data typeconverting data types in pandasdataframe change column to numericpandas data type of columnpandas converter string to intpandas convert column from object to int64convert pandas dataframe to inthow to change data type of a column in pandas dataframeconvert pandas object to intdataframe transform column to intpython convert column to intconvert object to int pandaspython set variable type integerhow to convert columns to int in pandaspandas dataframe create set column typehow to specify columns data type in pandas dataframechange the dtype of a dataframe columnpandas define type of columnint64 to object pandaschange column object to int pandastype of column in pandasobject to int conversion in pandaspandas convert column to to numericpython convert dataframe to intfloat64 to int pandaspython pandas convert column to inttransfoorm dataframe column datatypepandas make column intpandas to int64pandas convert float64 to int64convert pandas dataframe object to intconvert column to int dataframehow to turn dataframe column from object to int in pandaschange column in pandas data frame to numberschange type to interger pythonpanda convert column to intpandas convert object to int64get column type pandashwo to change column type in pandashow to set datatype of all columns in pandaspandas object to integerpandas convert a column to 1 or 0convert object data type to int pandasset type of column pandasconvert pandas column values to intpandas dtype object to intpython change data type to intconvert column type to numeric pandaspandas covertconvert a column to integer pandaschange column type in dataframe pythonpandas dataframe change column type to intcasting object to int in pandascolumn as int pandasspecify column types pandas dataframehow to change data type of a column pandasconvert columns to numeric pandascolumn to integer pythonconvert a pandas column to integercolumn to int pandaspanda cast col to inthow to downcast pandas column to integerpandas dataframe type of columnconvert data type in python using to intchange a data type of a column in pandaspandas dataframe change column dtypetypecast pandas column to inthow to change datatype of column in pandas columnastype intpandas converting an object column to integerdata frame set type of columnhow to convert a column into int in pythonhow to use astype to convert objectto int64convert 27o 27 type to int type pythonassign type to new column dataframepandas col to intpython astype intpd df change object to int64pandas column convert to int applyhow to change datatype of a column in pandas dataframesetting datatypes of columns in pandasconvert data type to int in pandastype of column pandaschange panda column to integerdataframe set typechange column from object to int pandasdata type of column in pandaschange df column typepython change data type to integerchanging string into integer datatypepandas parse column to intconvert a column from string to int pandaschange column type pythonchange dtype to object pandaspandas convert column data type to intpython set pandas column dtypeconverting flot colum to int in pandashow to convert column to int8 in pandaschange each column type of dataframe pandashow to turn columns into integer pythonconvert column pandas to int64python astypepandas df astypeconvert string column to int pandaspandas change column data type to numericpandas set column typespandas change type of one fieldpandas to int64pandas specify column typesdataframe specify dtypesdataframe columns typepandas changing columns data typespandas change column from float to intpandas dtype from int64 to objectconvert pandas column typedataframe set type of columndataframe casttype of pandas columnsconvert categorical column to int in pandashow to set type of column dataframechange the type of a dataframe columnconvert 24 object to int pandashow to convert a pandas column price to integerforce columns type pandaspandas set dtypechange column type pandashow to convert all columns to int in pandasdataframe change type columnsconvert pandas columnhow to convert object to int in pandasobject to integer pandaspandas make all column as intpandas convert column typeconvert data type to int in pandas dataframeconvert all columns in pandas to typeget a column type in pandasconvert pandas column to numericpandas dataframe dtypes astypehow to change the data type of a column in pandaspandas convert column with null to intpandas astype int64python change type to intchange data type to integer pandaschange data type of pandas column to intdataframe colimn to intcolumns astype dataframechange column type pandas to intconvert int column to object pandasconvert df column to intconvert column s from string to int pandaspandas data type object to inthow to conver a column to a int in pandasconvert a column to series pandaspandas set datatype of columnpandas change data type of columnconvert a column to int pandaschange type of pandas columnshow to change a column type in pandashow to change dtypes in pandaspandas column to integerr dataframe columns to intchange column type to int64 in pandaspandas convert dtype in column to dtype from another columnconvert int to int64 series pandasto int column pandas dataframetype of column dftypecast pandas columnhow to change the datatype of a column in pandasconvert dataframe type to intpandas convert values in column to intpandas change dtypetransform object to int pandaschange the datatype of a column in dataframe pythonpandas object ot intpandas change column typehow to convert a panda column price to integerpandas dataframe change column dtype to int64convert dataframe data type to intpandas cast columns to int64convert str column to int pandaspandas how to cast object to intpandas type changeconvert datatype to int of column in pandashow to convert column type in pandasencode as type int pandaspandas pandas column to intpandas convert column to integeraastype pandaspython dataframe column convert string to intpandas dataframe change column typeread column as int pandasdefine column type pandaschanging data types in pandaspandas column typeconvert column to numeric in pandaspandas columns to intconvert column of dataframe to integercolumn dataframe as type intchanging data type pandaspandas dataframe to intconver column types dataframesdataframe column apply and convert to inttype of the price column to int pandaschange datatype of a column of dataframe in pandasconvert entire column to int type pandasconvert a column into an int pythonconvert a string column to int in pandashow to convert for int python columnconvert values pandas dataframe to int64pandas convert all object columns to intconvert all columns of dataframe to intconvert dataframe to intinteger as object pandasconvert object to int64 pandashow to convert object to int64 in pandas serieschange type of column in dataframepandas fillna int8pandas convert all column to numericpandas change type castconvert an object to int pandasdataframe assign datatypeset dtype for column pandasdf 3d df astype 28 7b 27n bedroom 27 3a 27object 27 2c 27n room 27 3a 27object 27 2c 27n bathroom 27 3a 27object 27 7d 29convert pandas df with dtypepandas columns as integerhow to convert a column of strings to intergers in pandaschange dataframe column typeconvert pandas column to objecthow i can convert all number columns to int dfconvert a column to int64 pandaspandas dataframe convert column to intconvert pandas datafreame to intconvert column into numeric pandasconvert all columns to int pandasdefine pandas column typeobjedt colkukn to integer pytjonconvert column for int pythonchange datatypes of columns pythonastype 28int64 29pandas column to float64how to turn columns from columns to numeric pandaspandas converter to int64how to change object to int pandastype of column in dataframedf columns typechange dataframe typeconvert to float64 pandaspandas object to intdata type change to int64 in python pandashow to convert values in column to int pandashow to convert dataframe to int in pythonset dtypes of pandas dataframe columnsset column to int pandashow to convert int64 to dataframe in pythonpandas df parse column to intpandas set column to data typepandas convert column to int64how to column series df typechange a column to integer pandasdtaaframe whole column type to intcolumns data type pandasconvert dataframe column to intturn pandas column into integerhow to convert all the columns to numeric type in pandas dataframepython pandas change column to intconvert datatype of column in pandaschange datatype pandashow to convert object to int in pandas dataframepandas dataframe set type astype pythonpandas change type of columnspython pandas change column typechange type of column pandas to inthow to change dataype of all columns of a dataframeconvert fload column to int in pandasstring to int column pandaschange column to int pandaschange type to float python astypehow to set dataframe columns typesmake pandas column integerstring to int pandaspanda convert column to integerpandas cast column to intpython pandas dataframe change column typehow to convert a column in pandas to intpd set dtypedataframe convert object int to intpandas convert column as intpython dataframe change type of columnconvert datatype to int if it is digithow to convert a dataframe type to intconvert dataframe column to integerschange dataframe to integer pandaspandas set dtypeschange data type of all column in pandas to intdf convert column to intconvert column to int pandas dataframechange data type of column in dataframe pythoncast dataframe column to int pandasall dataframe to intchange df column to intturn column to numeric features pandasconvert column from object to int pandasdataframe convert column to numericconvert panda column to intconvert decimal column values to integer pandashow to manually set the type of each column in pandas dataframechange the type of a column pandaschange the column type pandasdf col to inthow to change column type in dataframeconvert a str column to int col in dataframe in pythonhow to change column types in pandaschange type of columns pandaspandas change an object type to inthow to turn all values to int in a column pandasdataframe to intconvert pandas datatypepandas how to change data type of column set type of column dataframe to intchange column type to int pandaspandas change all column types to intchanging object to int pandaschange column string to int pandasdate object to int64 pandaspandas column to intconvert datafram column to intcast column pandaschange type of dataframe column pythonconvert dataframe columns to numeric pythonpython dataframe type columnint32 to int64 pandasconvert all the columns to int in pandaspandas datetime column to intturn df column into int pandasmake column in pd to intdf column to integer pandasconvert object to int64 in pandaspandas convert 3 value string column to intconvert column to integer pandasconvert pandas column data type to inttype cast pandas columntypecast a column in pandasset column to int panadspandas convert column into intastype int pandasconvert a object column to integer pandaspandas how to specify column datatypesmake column integer pandashow to load a datframe column as type sethow to change column to int in pandsint64 to int pandaint astypepandas type of columnconvert columns to integret from numeric pythonchange data type python pandaspandas convert object to intchange type of column in pandas pythonconvert all values in dataframe column to type intpython pandas set column typespandas convert column to numericset type of column pandaspandas change data type of column from object to intchange data type pandasconvert object to numeric dataframeconvert dataframe values to intread panda columns values as inthow to set column type in pnadaspandas column to int listpandas convert all columns to intset datatype of column pythondf astype float64column type python pandasdataframe change column typeset data type to a column pandaspadnas convert column to intconvert all values in df column to integerpandas convert all numeric columns to intgetting datatype of columns pandaschange pandas column typeconvert to int column pandashow to convert a datatype of a column into numeric in pandascolumn as type pandasconverting dtype int32 to int64 pandasastype pythonhow to convert a column to integer in pandasfrom object to int64 pandaspd set column typespandas set type of columndataframe column values to inthow to convert object to int64 in pandaspandas dataframe column as inthow to change object to int64 in pandasconvert column string to int pandaschange column from float to int pandaschange object to int pandasconvert column in numeric pandasdataframe columns type pythondatafreme column to intpandas set type for columnpands convert column to intcolumn pandas as typecahgne column type to int pandasconvert column units pandas to intpandas changing the type of a columnchange column type to int64 pandasconvert column pandas to decimalconvert objet to int64 pandaspandas column string to intconvert column pandas to intconvert columns to int pandashow to change a type of a column in pandasconvert a dataframe column to intpandas convert column string to intpandas column as intastype in pythonconvert column to int pandas errorschange type of dataframe column to intfrom object to int pandashow to set dtype for a column in pandaspass col to type int pandaspandas change object to int64how to convert dataframe data typepandas change float64 to int64pandas set type to intpandas df conver column to intpandas change datatype of columnchange column type pandas dataframehow to define what type of column in pandaspython convert dataframe column values to intconvert int16 to int64 pandascast column to int pandasconvert column values to integer pandaspandas convert the datatype from int64 to int 8object to int in pandashow to concert dataframe column to integersconvert object to integer pandascolumn to numbers pandasdata type of column pandasmake a variable astypechange pandas series data typepandas column as typepandas convert column of strings into integersturn pandas column to intobject to int64 pandas pandas object to int32convert whole column to int pandaschange data type of column in pandaspandas convert column to numberconvert column type to int pandashow to change a data type of a column in pandasturn a df column in intpandas change float64 to objectpandas to integer columnset df column typedata type of columns in pandashow to make a pandas column integeras int column pandaschange data type pandas dataframe columnconvert all columns to integer pandaspandas transform column to int without decimalhow to convert object to int in python pandaschange values of a column pandas into integerconvert pandas dataframe column to integerhow to convert object column to int in pythontype of columns pandaspandas how to convert every value in a column to an intpython dataframe convert column to python intpandas columns of typeset dtype of column pandasconvert column to int pandashow to convert a column from string to integer in dataframeconvert a pandas column to numericchange type of a columns pandasforcing a data type in pandastype of a column in pandasastype 28int64 29 pandashow to change column type to int in pandasread dataframe column as int pythonhow do i convert data type to int in pandas for a columntransform to int64 pandasconvert pandas object to int64 astype 28 29change datatype of column in dataframepandas column object to intpythong df convert column values to intpandas convert columns to numericset datatype for pandas columnas type pythonpython convert dataframe astype intchange type of column to int pandasdf astype intconverting a column to int in pandascasting pandas dataframe to int64how to convert type of a column in pandasdataframe astype metodpandas column astype inthow to convert a dataframe column into int in pythonconvert type of column pandastransform columns into integer pythonobject to int pandas databaseconvert pandas columns to intfinding column type in pandashow to specify columns type in pandasconvert to int in pandas dataframedataframe astype float32convert column to intpandas change column type from float to intpython dataframe column as inttype columns dataframehow to change df object column to int in pythonpandas column to numberconvert dataframe column to integer pythonconvert object columns to int pandasconvert pandas column to intset column dtype pandasconvert a series column to int64 pandaspandas astypepandas dataframe convert object to intconvert string into int pandasdataframe type changeset type as dataframeastype 28int 29convert object column to int pandasformula python type of column in dataframecast alphanumeric column to int in pandas dataframe column pythondataframe set typespandas change type of columnhow to change the type of a pandas columnpandas how to convert everythuing in a column to an intpython dataframe object to int64 erroras dtype pandasconvert to integer pandas columnchange column in a pandas dataframe to numericset types pandas columnconvert datatype of column in dataframe pythoncoverting object column into int in pythonpython pandas column to intpandas python how to change column type to int64pandas float to dataframeconvert certain column to integer pandaschange object to integer pandasconvert dataframe column from string to intconvert columns to int pythonhow to change column data type in pandasastype float pythonconvert string column to int pandas dataframehow to convert object to int32 in pandasturn data type to dtype pandastype of dataframe columns pandashow to convert a column with mixed data type to an int in pandasset all column types to object pandasdata astype pythonconvert column to number dataframehow to convert object dtype to int in pandas dataframe for one columnpython set a column data typecovert column type int in pandasconvert entire column to int pandasastype 28 29 change pandas data typepandas convert column to intergerpython column to intforce column to int pandaspandas set column type as intchange data type to integer pythonpandas istypepandas colunm integer encodepandas set data types for columnsastype 28float 29pandas change column type to integerint pandas columnconvert object to int in pandasto change datatype of column in pandaspandas set data type to intconvert a column to numeric pandaspandas set datatypes of columnspandas series values to intpandas df change column type to intchange column data type in pandasconvert all columns astype int pandasconvert dataframe column type to inthow do i convert a pandas column price to integerchange dtype pandas dataframepandas set column dtypechanging type of column in pandaspandas convert int column to intchange data type of dataframe columnset columns as int pandaspython dataframe change data type to intchanging datatype of columns with astype 28 29pandas colukmn to intpython dataframe convert all columns to integerpandas define a type for columnsconvert column into integer pythonpandas apply change type of columnchange dtypes pandasdataframe convert one column to inthow to convert object to int pandasset datatype of column pandashow to force int to a column in pandaspython dataframe make object column to numericconvert column to object pandasconvert column from string to int pandashow to change the type of a dataframe columnchange from object to int pandasturn columns type into int pandaspandas set column data typeconvert pandas column to float64pandas from object to intconvert column to int pandas commapandas convert a column to integerpandas change data types object to intconvert to intger colum pandastype of columns in pandaspandas set column typepandas change column data typeconvert object column to int64 pandashow to change the class column to integer in pandashpow to convert data column frm object to int in pandasconvert values of column to int pandasdf 3d df astype 28 7b 27in bedroom 27 3a 27object 27 2c 27n room 27 3a 27object 27 2c 27n bathroom 27 3a 27object 27 7d 29pandas types columnsdataframe object to int64pandas convert column to list of integerscasting a column of a dataframe to different typeshow to convert a pandas column from int to objecthow to change data type to int in pandaspandas convert to int columnchange column str to int in pandasastype 28int 29 pythonastype int dtype boolconvert pandas to typedefine type pandas columnspandas make object to integerpandas define column as intconvert object values of column to int pandashow to change the type of a column in dataframespecify column dtype pandaschange object to int in pandasconvert a column to integer in pandasconvert data type to int pandashow to convert dataframe column to integerastype object to int64 pandastypes of columns pandasset datatype of pandas columnpandas change data typehow to convert object type to int64 in pandaschange column to integer pandaspandas convert to int64set datatype of col pandaschange python dataframe column typeconvert column to int pythonpandas convert column to intsdataframe replace int64 to intchange the type of column in pandaspandas conert column with string to integerchange type of a column pandaschange type of dataframe pandasmake columna an integer in pandaschange the datatype of a column in pandashow to convert bool column to int pandasseries column to int pandasdataframe object to intchange column type in pandaspandas change column type to intdataframe convert column to intcorrect command to convert such object type column in a dataframe into integer or float typechange data type of column pandas dfhow can i convert a pandas object into integer 3fset datatype of columns in pandasset type of column pdpandas set type value in columndf column int32change datatype of a column in pandasdataframe convert all columns to intconvert all values to int in column dataframechange datatype of column in pandas dfhow can i encode string columns to integer in pandashow to change the type of a column in pandascan we change object to int in pandaspandas change a column data typehow to conver column to int in pandaschange dtype in dataframespecify datatype of colums pandastype of a dataframe columnpandas change data type int to objecttype column pandasconvert values in dataframe to intchanging dtype in pandaschange type of dataframe columnconvert to int df columnpd dataframe set column typespandas columns typereplace and convert to integer pandas columninteger column pandasdataframe convert to intchange datatype of pandas columnpandas set data type for columnschange data type of column pandaschange dtype pandas to intas int in pandasconvert to column to integer dataframeset column type pandas classpandas set dtype to intspecify dataframe column dtypeschange type column to integer pandas astype 28int 29pandas df columns inthow to convert a pandas string column to numbershow to change datatype of column in python from object to int64convert categorical column to int in pandaspandas convert column to int32python make pandas columns dtype realconvert from object to int pandaspandas column object price to intpandas dataframe set datatype of columnsdataframe column change typehow ot change column type pandasconvert string column to integer pandaspandas colum to inttransform types dataframe pandas to intpython dataframe dtypes to integercast dataframe to intconvert column from object to int pandas nonetypepandas dataframe object to intchange column of strings to int pandaspython convert column astype exampleconvert from int64 to dataframchange pandas column to intconvert dataframe to int pandasconvert dataframe column to integerconvert col to int pandaschange column data type pandasconvert all numeric columns to int pandascolumn to integer pandaspandas change column to intpython dataframe set typepandas set column type to intastype in pandaspandas convert string column to integerchanging datatype of pandas columnpandas change type columnpandas cast column as objectastype datetimechange pandas dataframe dtypeconvert a column in int dataframepandas column convert to inttransform column to int pythonchange column from string to int pandasconvert df column to integetdataframe as intpython cast column to intassign the dtypes of columns pdcast pandas column to intchange type column data framepython pandas change column type to numericconvert object values to int pandasconvert object column to numeric pandaschange dtype of column pandasdataframe columns string to intcast type pandashow to change data type of column in pandasconvert all data into int pandaspandas change data type of a columnpandas convert column dtypepandas transform column to inthow to convert column of data frame from integer to framecast dataframe column to intset the type of a column pandasdataframe column typepandas column data type changechanging datatype in pandashow to change type of column in pandaschange pandas column to numbers 2848021 6 2c 51046 4 5d how to convert to datatype int in pandastrue to int python dataframs astype errorchanging pandas column typedf 5b 22 22 5d 3d df 5b 22 22 5d astype 28 27int 27 29transform type of column pandasset type pandascast columns to int pandasconvert column data to dataframeset column type pandasdatatype of column in pandaspandas dataframe set dtype astype 28 27object 27 29data type to integer castingchange dtype from object to int pandasobject to int in dfchange dtype object to int pandaschange pandas object to int pythonchange a column type in pandashow to change datatype of column in pandasformat a column to integer pandasdf column to intconvert string value of dataframe column to intchange column type to int pythonpandas convert all columns to floatpandas set type of columnspandas as typechange column from category to int pandaspandas dataframe cast column to intconvert int64 to object pandaschange float64 to int64 pandasconvert object to int in python pandasint column pandasconverting column data type in pandashow to change dataframe typepandas cast to integerif column has digits convert into int pandaspanda dataframe set typechange data type for columns pandaspandas colums dtypepandas new column int typeconver dataframe column to intset first column as index pandaspython pandas type of column dataobject to int64 pandas