"""
typing.Tuple and typing.List are Generic types; this means you can specify what type their contents must be:
"""
def f(points: Tuple[float, float]):
return map(do_stuff, points)
def labeling(df:pd.DataFrame, columns_name:list) -> pd.DataFrame:
data = df.copy()
for column in columns_name:
for i in range(len(data[column])):
if data[column][i] > 0:
data[column] = data[column].replace(data[column][i], 1)
else:
data[column] = data[column].replace(data[column][i], 0)
return data