Commit 629be346 authored by Christopher Tchervenkov's avatar Christopher Tchervenkov
Browse files

only update progress if number of freight trips > 0

parent a042b728
...@@ -53,7 +53,7 @@ def execute(context): ...@@ -53,7 +53,7 @@ def execute(context):
trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"], trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"],
data=trips)) data=trips))
progress.update(number_of_trips) progress.update(number_of_trips)
# concatenate into single data frame # concatenate into single data frame
df_trips = pd.concat(trips_frames) df_trips = pd.concat(trips_frames)
......
...@@ -53,7 +53,7 @@ def execute(context): ...@@ -53,7 +53,7 @@ def execute(context):
trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"], trips_frames.append(pd.DataFrame(columns=["origin_id", "destination_id", "vehicle_type"],
data=trips)) data=trips))
progress.update(number_of_trips) progress.update(number_of_trips)
# concatenate into single data frame # concatenate into single data frame
df_trips = pd.concat(trips_frames) df_trips = pd.concat(trips_frames)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment