Cheat Sheet: Data Wrangling
Package/Method | Description | Code Example |
---|---|---|
Replace missing data with frequency | Replace the missing values of the data set attribute with the mode common occurring entry in the column. |
|
Replace missing data with mean | Replace the missing values of the data set attribute with the mean of all the entries in the column. |
|
Fix the data types | Fix the data types of the columns in the dataframe. |
|
Data Normalization | Normalize the data in a column such that the values are restricted between 0 and 1. |
|
Binning | Create bins of data for better analysis and visualization. |
|
Change column name | Change the label name of a dataframe column. |
|
Indicator Variables | Create indicator variables for categorical data. |
|
Comments
Post a Comment