Skip to content

Set default value of TSDataset.head method #170

Merged
merged 2 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Defined random state for every test cases ([#155](https://github.com/tinkoff-ai/etna-ts/pull/155))

### Fixed
- Set default value of `TSDataset.head` method ([#170](https://github.com/tinkoff-ai/etna-ts/pull/170))

## [1.1.3] - 2021-10-08
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion etna/datasets/tsdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def isnull(self) -> pd.DataFrame:
"""
return self.df.isnull()

def head(self, n_rows: Optional[int] = None) -> pd.DataFrame:
def head(self, n_rows: int = 5) -> pd.DataFrame:
julia-shenshina marked this conversation as resolved.
Show resolved Hide resolved
"""Return the first `n` rows.

Mimics pandas method.
Expand Down