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
# import stuff! | |
# just read the code and see what needs to be imported :) | |
def get_X_and_y(df, target): | |
try: | |
return df.drop(columns=target), df[target] | |
except: | |
return df, None | |
############################################ |