Skip to content

Commit

Permalink
Set default value of TSDataset.head method (#170)
Browse files Browse the repository at this point in the history
* Set default value for head method to 5

* Update changelog
  • Loading branch information
Mr-Geekman authored Oct 11, 2021
1 parent 716da3a commit 9e9e0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,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:
"""Return the first `n` rows.
Mimics pandas method.
Expand Down

0 comments on commit 9e9e0c4

Please sign in to comment.