-
-
Save amankharwal/27250f601226d4a199c17d9edb519905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data["Discount"] = data["Discount"].map({"No": 0, "Yes": 1}) | |
data["Store_Type"] = data["Store_Type"].map({"S1": 1, "S2": 2, "S3": 3, "S4": 4}) | |
data["Location_Type"] = data["Location_Type"].map({"L1": 1, "L2": 2, "L3": 3, "L4": 4, "L5": 5}) | |
data.dropna() | |
x = np.array(data[["Store_Type", "Location_Type", "Holiday", "Discount"]]) | |
y = np.array(data["#Order"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment