Fix minor bug of applications_forground_base.py

pull/95/head
Meng Li 2020-06-29 20:24:00 -04:00
parent b381672cae
commit 47369c4b2d
1 changed files with 1 additions and 1 deletions

View File

@ -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]