Skip to content

Commit

Permalink
fix .ix indexer removed from pandas 1.0 (#7)
Browse files Browse the repository at this point in the history
* fix .ix indexer deprecated from Pandas 1.0

* removing support for python older than 3.6.1

* removing support for python 3.4
  • Loading branch information
cetres authored Jun 14, 2020
1 parent 9a11cb7 commit 26915a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
dist
.cache
*.egg-info
.sonarlint
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ sudo: false
cache: pip
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
install:
- pip install -r tests/requirements.txt -r doc/requirements.txt
- pip install -e .
Expand All @@ -23,4 +24,4 @@ deploy:
skip_cleanup: true
on:
tags: true
python: '2.7'
python: '3.7'
2 changes: 1 addition & 1 deletion calmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def yearplot(
dayticks = range(len(daylabels))[dayticks // 2 :: dayticks]

ax.set_xlabel("")
ax.set_xticks([by_day.ix[datetime.date(year, i + 1, 15)].week for i in monthticks])
ax.set_xticks([by_day.loc[datetime.date(year, i + 1, 15)].week for i in monthticks])
ax.set_xticklabels([monthlabels[i] for i in monthticks], ha="center")

ax.set_ylabel("")
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering",
],
)

0 comments on commit 26915a1

Please sign in to comment.