Complete Guide For Feature Engineering — part 2

<p>This the continuation of my previous blog &ldquo;<a href="https://medium.com/p/9130f9013aca#8b86-4e9841830828" rel="noopener"><strong>part1</strong></a>&rdquo;. In it i had started with Feature Transformation. In Feature Transformation there are four sub topics as you can see in the below picture:</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*Cgk3tyh-VqArnHlazhZCig.png" style="height:571px; width:700px" /></p> <p>I had discussed &ldquo;missing value Imputation&rdquo; in depth visually. Pls do visit it and then come here.</p> <h1>1.2&nbsp;<strong>Handling Categorical Variables/Features/Columns:</strong></h1> <p>After reading the sub heading the 1st question one may get is &ldquo;what are categories?&rdquo;. For example when you think about automobiles there are different types right! like bikes,autos,cars, lorries..so on. In a similar way if you find any categories in a column it is called as categorical varible.</p> <p><strong>This the formal definitation:&nbsp;</strong>A categorical variable is a type of variable that represents data with distinct, separate categories or groups. Categorical variables can be further divided into nominal and ordinal categories:</p> <ol> <li><strong>Nominal Categorical Variable:&nbsp;</strong>This type of categorical variable has categories with no inherent order or ranking. For example, the color of cars (e.g., red, blue, green) is a nominal categorical variable because there&rsquo;s no meaningful order among the colors.</li> <li><strong>Ordinal Categorical Variable:</strong>&nbsp;This type of categorical variables has categoies with order or ranking among them.An example would be education levels (e.g., high school, bachelor&rsquo;s degree, master&rsquo;s degree), where there is an order but the difference between &ldquo;high school&rdquo; and &ldquo;bachelor&rsquo;s degree&rdquo; is not necessarily the same as the difference between &ldquo;bachelor&rsquo;s degree&rdquo; and &ldquo;master&rsquo;s degree.</li> </ol> <p><a href="https://medium.com/@kothapallijayanth521/complete-guide-for-feature-engineering-part-2-c62909a2dd43"><strong>Read More</strong></a></p>