Skip to content

Commit

Permalink
Merge pull request #545 from data-8/ahemani/issue_540
Browse files Browse the repository at this point in the history
Issue 540: Change np.int references to np.int64 to remove deprecation warnings
  • Loading branch information
davidwagner committed Jun 12, 2022
2 parents a30c63f + 84337fe commit e372952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

### v0.17.3
* Remove many deprecation warnings.

### v0.17.2

* Remove test requirements from being installed all the time.
Expand Down
2 changes: 1 addition & 1 deletion datascience/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5804,7 +5804,7 @@ def _vertical_x(axis, ticks=None, max_width=5):
if ticks is None:
ticks = axis.get_xticks()
if (np.array(ticks) == np.rint(ticks)).all():
ticks = np.rint(ticks).astype(np.int)
ticks = np.rint(ticks).astype(np.int64)
if max([len(str(tick)) for tick in ticks]) > max_width:
axis.set_xticklabels(ticks, rotation='vertical')

Expand Down

0 comments on commit e372952

Please sign in to comment.