Skip to content

Commit

Permalink
Issue #249 on line 238, replaced the pd.append with pd.concat to addr…
Browse files Browse the repository at this point in the history
…ess FutureWarning
  • Loading branch information
bikegeek committed Jan 19, 2023
1 parent d66c728 commit b8e5616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metcalcpy/sum_stat.py
Expand Up @@ -182,6 +182,7 @@ def aggregate_special_fields(self, axis='1'):
Args:
axis - y1 or y1 axis
"""
warnings.filterwarnings('error')

# check if indy_vals have a field that need to be aggregated - the field with ';'
has_agg_indy_field = any(any(GROUP_SEPARATOR in i for i in item) for item in self.params['indy_vals'])
Expand Down Expand Up @@ -235,7 +236,7 @@ def aggregate_special_fields(self, axis='1'):
point_data,
self.params['line_type'])

aggregated_values = aggregated_values.append(point_data)
aggregated_values = pd.concat([aggregated_values, point_data])
self.input_data = aggregated_values
self.input_data.reset_index(inplace=True, drop=True)

Expand Down

0 comments on commit b8e5616

Please sign in to comment.