[Solved]Convert Datatypes Whole Csv File Imported Jupyter Notebook Float Int Using Python Csv File Q37230500
How to convert datatypes for whole csv file imported in jupyternotebook from float to int using python
This csv file is available online
import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import chi2_contingency from fancyimpute import KNN import os from sklearn.metrics import r2_score from scipy import stats %matplotlib iniine [387]: H # setting working directory In os.chdir(“C:UsersHiesenberg DesktopWORK”) # Loading data df pd.read_excel( Absenteeism_at_work_Project.xls”) Exploratory Data Analysis In [262): # First 5 rows of data df.dtypes Out [262] ID int64 float64 float64 int64 int64 float64 float64 float64 float64 float64 Reason for absence Month of absence Day of the week Seasons Transportation expense Distance from Residence to Work Service time Age Work load Average/day Show transcribed image text import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import chi2_contingency from fancyimpute import KNN import os from sklearn.metrics import r2_score from scipy import stats %matplotlib iniine [387]: H # setting working directory In os.chdir(“C:UsersHiesenberg DesktopWORK”) # Loading data df pd.read_excel( Absenteeism_at_work_Project.xls”) Exploratory Data Analysis In [262): # First 5 rows of data df.dtypes Out [262] ID int64 float64 float64 int64 int64 float64 float64 float64 float64 float64 Reason for absence Month of absence Day of the week Seasons Transportation expense Distance from Residence to Work Service time Age Work load Average/day
Expert Answer
Answer to How to convert datatypes for whole csv file imported in jupyter notebook from float to int using python This csv file is… . . .
OR

