this needs work pls make the function do what the comments suggest
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user