Skip to content

Commit

Permalink
Fix bindings helper function
Browse files Browse the repository at this point in the history
After the pivoting was speed up in #705,
the helper function for the spark and dask bindings also needs to
change.

Additionally, this allows to introduce a fix for #709.
  • Loading branch information
nils-braun committed Jun 11, 2020
1 parent 29cdae3 commit 0954ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsfresh/convenience/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def _feature_extraction_on_chunk_helper(df, column_id, column_kind,
chunk = df[column_id].iloc[0], df[column_kind].iloc[0], df.sort_values(column_sort)[column_value]
features = _do_extraction_on_chunk(chunk, default_fc_parameters=default_fc_parameters,
kind_to_fc_parameters=kind_to_fc_parameters)
features = pd.DataFrame(features)
features = pd.DataFrame(features, columns=[column_id, "variable", "value"])
features["value"] = features["value"].astype("double")

return features[[column_id, "variable", "value"]]
return features


def dask_feature_extraction_on_chunk(df, column_id, column_kind,
Expand Down

0 comments on commit 0954ae5

Please sign in to comment.