From befe8b813689a57f02d80bb0739c452e43805ff4 Mon Sep 17 00:00:00 2001 From: pwwang <1188067+pwwang@users.noreply.github.com> Date: Mon, 28 Mar 2022 12:29:08 -0500 Subject: [PATCH] 0.7.1 (#101) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 Fix `settingwithcopywarning` in `tidyr.pivot_wider()` * 📌 Pin deps for docs * 💚 Don't upload coverage in RP * 🔖 0.7.1 --- .github/workflows/build.yml | 2 +- datar/__init__.py | 2 +- datar/tidyr/pivot_wide.py | 2 ++ docs/CHANGELOG.md | 8 ++++++++ docs/requirements.txt | 9 ++++++--- pyproject.toml | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5de40d4..5c0734ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: if: ${{ always() }} - name: Run codacy-coverage-reporter uses: codacy/codacy-coverage-reporter-action@master - if: matrix.python-version == 3.9 && matrix.pandas == 'pandas' + if: matrix.python-version == 3.9 && matrix.pandas == 'pandas' && github.event_name != 'pull_request' with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: cov.xml diff --git a/datar/__init__.py b/datar/__init__.py index c115d870..2a23d41b 100644 --- a/datar/__init__.py +++ b/datar/__init__.py @@ -14,7 +14,7 @@ options(enable_pdtypes=True) __all__ = ("f", "get_versions") -__version__ = "0.7.0" +__version__ = "0.7.1" def get_versions(prnt: bool = True): diff --git a/datar/tidyr/pivot_wide.py b/datar/tidyr/pivot_wide.py index 259f4f73..33fe3792 100644 --- a/datar/tidyr/pivot_wide.py +++ b/datar/tidyr/pivot_wide.py @@ -129,6 +129,8 @@ def pivot_wider( # hold NAs in values_from columns, so that they won't be filled # by values_fill + if values_from and ret is _data: + ret = _data.copy() for col in values_from: ret[col].fillna(NA_integer_, inplace=True) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index df91bb51..8c2ed910 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.7.1 + +- 🐛 Fix settingwithcopywarning in tidyr.pivot_wider() +- 📌 Pin deps for docs +- 💚 Don't upload coverage in PR +- 📝 Fix typos in docs (#99, #100) (Thanks to @pdwaggoner) + + ## 0.7.0 - ✨ Support `modin` as backend diff --git a/docs/requirements.txt b/docs/requirements.txt index 75617edb..7a408f8d 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,9 +1,12 @@ # use_directory_urls doesn't work for newer versions mkdocs==1.1.2 -mkdocs-material -pymdown-extensions +# AttributeError: module 'jinja2' has no attribute 'contextfilter' +# jinja2==3.1.0 +jinja2==3.0.3 +mkdocs-material==7.2.3 +pymdown-extensions==8.2 mkapi-fix -mkdocs-jupyter +mkdocs-jupyter==0.17.3 ipykernel ipython_genutils # to compile readme.ipynb diff --git a/pyproject.toml b/pyproject.toml index da20f12a..47b8585f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "datar" -version = "0.7.0" +version = "0.7.1" description = "Port of dplyr and other related R packages in python, using pipda." authors = ["pwwang "] readme = "README.md"