From e704b2258c8fe95b33ed95136ed46c095f318338 Mon Sep 17 00:00:00 2001 From: Gal Topper Date: Mon, 8 Jan 2024 17:33:07 +0800 Subject: [PATCH] Update README and release YAML to reflect python 3.9 support (#658) * Update README and release YAML to reflect python 3.9 support * Fix lint error --- .github/workflows/release.yaml | 2 +- README.md | 2 +- clients/py/v3io_frames/pbutils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 87726700..0cf6a738 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -191,7 +191,7 @@ jobs: - name: Set up python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: 3.9 - name: Set version run: make set-version diff --git a/README.md b/README.md index cac19e81..3ae9f81c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ The library was developed by Iguazio to simplify working with data in the [Iguaz #### Python Version -The current version of Frames supports Python 3.6 and 3.7. +The current version of Frames supports Python 3.7 and 3.9. #### Initialization diff --git a/clients/py/v3io_frames/pbutils.py b/clients/py/v3io_frames/pbutils.py index b4e7e636..654cab74 100644 --- a/clients/py/v3io_frames/pbutils.py +++ b/clients/py/v3io_frames/pbutils.py @@ -183,7 +183,7 @@ def df2msg(df, labels=None, index_cols=None): indices = None if index_cols is not None: # if there is already an index set, we want to preserve it. - if not (type(df.index) == pd.RangeIndex and df.index.name is None): + if not (isinstance(df.index, pd.RangeIndex) and df.index.name is None): df.reset_index(inplace=True) indices = [series2col(df[name], name) for name in index_cols] cols = [col for col in df.columns if col not in index_cols]