Question: data_df.info() How to convert obj into int? data_df.info() < class ' pandas . core . frame . DataFrame '> RangeIndex: 11217 entries, 0 to 11216
data_df.info()
How to convert obj into int?
data_df.info()
<class 'pandas.core.frame.DataFrame'> RangeIndex: 11217 entries, 0 to 11216 Data columns (total 16 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Unnamed: 0 11217 non-null int64 1 dvcat 11217 non-null object 2 weight 11217 non-null float64 3 Survived 11217 non-null object 4 airbag 11217 non-null object 5 seatbelt 11217 non-null object 6 frontal 11217 non-null int64 7 sex 11217 non-null object 8 ageOFocc 11217 non-null int64 9 yearacc 11217 non-null int64 10 yearVeh 11217 non-null float64 11 abcat 11217 non-null object 12 occRole 11217 non-null object 13 deploy 11217 non-null int64 14 injSeverity 11217 non-null float64 15 caseid 11217 non-null object dtypes: float64(3), int64(5), object(8)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
