Machine Learning, Data Science Projects, Data Science, Machine Learning Projects, Data Analysis.
realized “LF”, “low fat” and “Low Fat” are all the same, and “reg” and “Regular” are the same. So, there should be only 2 unique values in this column. Let’s correct this column by replacing both “LF” and “low fat” with “Low Fat” and “reg” with “Regular”. train['Item_Fat_Content'].replace({'LF':