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

Remove access to changing TSDataset attributes #630

Merged
merged 35 commits into from
Mar 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5a78a8f
create _df attribute
Mar 11, 2025
02d9bc5
change tests
Mar 11, 2025
4d12e73
Merge remote-tracking branch 'origin/master' into issue-598
Mar 11, 2025
38a1e62
create _raw_df attribute
Mar 11, 2025
6c4167d
change tests
Mar 11, 2025
5148e79
add _df_exog attribute
Mar 11, 2025
f028871
change tests
Mar 11, 2025
4472279
create _known_feature attribute and read_only property known_future
Mar 11, 2025
4bcc365
change tests and add new ones
Mar 11, 2025
f3218d5
create _freq attribute and read_only property freq
Mar 11, 2025
da4d848
add new test
Mar 11, 2025
b35684f
create _current_df_level attribute and property current_df_level
Mar 11, 2025
5a45b19
add new test
Mar 11, 2025
434f873
create _current_df_exog_level attribute and property current_df_exog_…
Mar 11, 2025
bb3d9bf
add new test
Mar 11, 2025
e5a521d
lint
Mar 11, 2025
e31c3b7
fix some tests
Mar 12, 2025
b26bbf6
change changelog
Mar 12, 2025
4f0606c
change notebooks
Mar 12, 2025
d1fb936
some fixes
Mar 12, 2025
a375969
change .columns to ._df.columns
Mar 12, 2025
1e0f91d
change .columns to ._df.columns
Mar 12, 2025
287e340
change .loc to ._df.loc
Mar 12, 2025
1ab14b4
lint
Mar 12, 2025
7298012
fix typo
Mar 12, 2025
36d9326
notebook view
Mar 12, 2025
c57c1b3
review fixed
Mar 12, 2025
f3f94cc
review fixed v2
Mar 12, 2025
0d3ff73
fix typo in changelog
Mar 12, 2025
7c3efd3
review fixed v3
Mar 12, 2025
72d51e3
review fixed v4
Mar 13, 2025
9aa9789
review fixed v5
Mar 13, 2025
b24b65a
fix isnull docs
Mar 13, 2025
bd0de1f
fix isnull docs
Mar 13, 2025
5dfb9e8
fix isnull docs
Mar 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add new test
Danil Smorchkov authored and Danil Smorchkov committed Mar 11, 2025
commit 5a45b19b64e8a688269c5cf3446dee4c3e614b30
7 changes: 7 additions & 0 deletions tests/test_datasets/test_hierarchical_dataset.py
Original file line number Diff line number Diff line change
@@ -518,3 +518,10 @@ def test_train_test_split_pass_hierarchy_to_output(simple_hierarchical_ts):
assert test.hierarchical_structure.level_structure == simple_hierarchical_ts.hierarchical_structure.level_structure
assert train.hierarchical_structure.level_names == simple_hierarchical_ts.hierarchical_structure.level_names
assert test.hierarchical_structure.level_names == simple_hierarchical_ts.hierarchical_structure.level_names


def test_error_set_current_df_level(market_level_df, hierarchical_structure):
df = market_level_df
ts = TSDataset(df=df, freq="D", hierarchical_structure=hierarchical_structure)
with pytest.raises(AttributeError, match="can't set attribute"):
ts.current_df_level = "market_2"