Skip to content
Snippets Groups Projects
Commit 02a8f610 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

small bugfix

parent 23a42174
No related branches found
No related tags found
No related merge requests found
......@@ -457,7 +457,7 @@ def _interpolate(data, method, order=2, inter_limit=2, downcast_interpolation=Fa
data.interpolate(method=method, inplace=True, limit=1, limit_area="inside")
else:
dat_name = data.name
gap_mask = (~gap_mask).cumsum()
data = pd.merge(gap_mask, data, how="inner", left_index=True, right_index=True)
......@@ -482,7 +482,9 @@ def _interpolate(data, method, order=2, inter_limit=2, downcast_interpolation=Fa
return x
data = data.groupby(data.columns[0]).transform(_interpolWrapper)
# squeezing the 1-dimensional frame resulting from groupby for consistency reasons
data = data.squeeze(axis=1)
data.name = dat_name
return data
......@@ -832,4 +834,6 @@ def interpolate2Grid(data, field, flagger, freq, interpolation_method, interpola
reshape_method=flag_assignment_method,
reshape_agg=flag_agg_func,
drop_flags=drop_flags,
**kwargs)
\ No newline at end of file
**kwargs)
#def aggregate(data, field, flagger, freq_base, freq_target, agg_func, **kwargs):
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment