this needs work pls make the function do what the comments suggest

This commit is contained in:
LinlyBoi
2023-03-29 23:01:58 +02:00
parent cd2aa41abd
commit b7a022cccb

View File

@@ -19,3 +19,8 @@ def slice_column(input_df, column, expression=" "):
def write_joined_df(left, right, lsuf="new_key"): def write_joined_df(left, right, lsuf="new_key"):
merged = pd.concat([left, right], sort=False, ignore_index=True) # Good merged = pd.concat([left, right], sort=False, ignore_index=True) # Good
return merged return merged
def slam_dunk(dataset, column, size):
dataset["dunked"] = pd.qcut(dataset[column], q=3)
return dataset["dunked"]