diff --git a/.gitignore b/.gitignore index fa254c6..af2c9af 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build dist .cache *.egg-info +.sonarlint \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 8e0b532..a909d3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 . @@ -23,4 +24,4 @@ deploy: skip_cleanup: true on: tags: true - python: '2.7' + python: '3.7' diff --git a/calmap/__init__.py b/calmap/__init__.py index 68e3a93..8ce99ef 100644 --- a/calmap/__init__.py +++ b/calmap/__init__.py @@ -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("") diff --git a/setup.py b/setup.py index c66fa1f..5458445 100644 --- a/setup.py +++ b/setup.py @@ -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", ], )