-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove access to changing TSDataset
attributes
#630
Conversation
🚀 Deployed on https://deploy-preview-630--etna-docs.netlify.app |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #630 +/- ##
==========================================
- Coverage 90.50% 88.88% -1.62%
==========================================
Files 259 259
Lines 18060 18072 +12
==========================================
- Hits 16345 16064 -281
- Misses 1715 2008 +293 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -67,7 +67,7 @@ def plot_trend( | |||
segments = ts.segments | |||
|
|||
_, ax = _prepare_axes(num_plots=len(segments), columns_num=columns_num, figsize=figsize) | |||
df = ts.df | |||
df = ts._df |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably replace it with smth like to_pandas()
in the future. Now we avoid it because of additional copying but it could be not a problem in copy-on-write mode on new pandas.
@@ -271,8 +271,8 @@ def _validate_nans(self, y_true: TSDataset, y_pred: TSDataset): | |||
ValueError: | |||
If there are NaNs in ``y_true`` or ``y_pred`` | |||
""" | |||
df_true = y_true.df.loc[:, pd.IndexSlice[:, "target"]] | |||
df_pred = y_pred.df.loc[:, pd.IndexSlice[:, "target"]] | |||
df_true = y_true._df.loc[:, pd.IndexSlice[:, "target"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably replace it with to_pandas
in the future.
tests/test_transforms/test_encoders/test_categorical_transform.py
Outdated
Show resolved
Hide resolved
tests/test_transforms/test_math/test_sklearn_transform_interface.py
Outdated
Show resolved
Hide resolved
View / edit / reply to this conversation on ReviewNB d-a-bunin commented on 2025-03-13T07:05:46Z Line #62. horizon = len(ts.to_pandas()) Couldn't we use |
Before submitting (must do checklist)
Proposed Changes
See #598
Closing issues
Closed #598