Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
sales['Revenue'].astype('int') Ex2. Our next example is when a categorical variable is represented as a number and mistakenly becomes an int variable , due to which we may get unexpected statistical summary of that variable/column of data. Example : We are saving marriage_status values as numbers,