Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: transform series to dataframe #202

Merged
merged 13 commits into from Sep 18, 2021
Merged

MAINT: transform series to dataframe #202

merged 13 commits into from Sep 18, 2021

Conversation

Zeroto521
Copy link
Owner

transform and inverse_transform require 2d data.
But the input would be 1d data (series).

To handle this, there have made the output data from series to dataframe.
1d data uses dataframe is a little bit weird.

Now we transform data type when data come in.


@wraps(func)
def decorator(self, X):
X_new = func(self, X)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does there remove the decorator?

This line code couldn't handle all considerations.

@codecov
Copy link

codecov bot commented Sep 18, 2021

Codecov Report

Merging #202 (fae758d) into master (2049220) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #202   +/-   ##
=======================================
  Coverage   99.36%   99.37%           
=======================================
  Files          22       22           
  Lines         472      479    +7     
  Branches       49       50    +1     
=======================================
+ Hits          469      476    +7     
  Misses          1        1           
  Partials        2        2           
Impacted Files Coverage Δ
dtoolkit/transformer/_util.py 100.00% <100.00%> (ø)
dtoolkit/transformer/_validation.py 100.00% <100.00%> (ø)
dtoolkit/transformer/base.py 100.00% <100.00%> (ø)
dtoolkit/transformer/numpy.py 100.00% <100.00%> (ø)
dtoolkit/transformer/sklearn.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2049220...fae758d. Read the comment docs.

@Zeroto521 Zeroto521 merged commit afb20dd into master Sep 18, 2021
@Zeroto521 Zeroto521 deleted the series_to_frame branch September 18, 2021 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant