From 72be28e50e889de5d918c52b2b696cb74169aad8 Mon Sep 17 00:00:00 2001 From: Jen Looper Date: Fri, 9 Jul 2021 10:42:35 -0400 Subject: [PATCH] fixing a bug in classification - save of a fresh dataframe for export --- 4-Classification/1-Introduction/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/4-Classification/1-Introduction/README.md b/4-Classification/1-Introduction/README.md index 38516901..4490131c 100644 --- a/4-Classification/1-Introduction/README.md +++ b/4-Classification/1-Introduction/README.md @@ -264,6 +264,12 @@ Now that you have cleaned the data, use [SMOTE](https://imbalanced-learn.org/dev The data is nice and clean, balanced, and very delicious! +1. The last step is to save your balanced data, including labels and features, into a new dataframe that can be exported into a file: + + ```python + transformed_df = pd.concat([transformed_label_df,transformed_feature_df],axis=1, join='outer') + ``` + 1. You can take one more look at the data using `transformed_df.head()` and `transformed_df.info()`. Save a copy of this data for use in future lessons: ```python