Fix minor bug of applications_forground_base.py
parent
b381672cae
commit
47369c4b2d
|
@ -29,7 +29,7 @@ def base_applications_foreground_features(apps_data, day_segment, requested_feat
|
|||
apps_data_global = apps_data.copy()
|
||||
|
||||
apps_features = pd.DataFrame(columns=["local_date"] + ["apps_" + day_segment + "_" + x for x in ["".join(feature) for feature in itertools.product(requested_features, single_categories + multiple_categories + apps)]])
|
||||
if not apps_data.empty::
|
||||
if not apps_data.empty:
|
||||
if day_segment != "daily":
|
||||
apps_data =apps_data[apps_data["local_day_segment"] == day_segment]
|
||||
|
||||
|
|
Loading…
Reference in New Issue