Skip to content

Instantly share code, notes, and snippets.

# 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
############################################