Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEOD-1326. Bump fireant to pandas version 2 #366

Merged
merged 3 commits into from
Sep 5, 2023
Merged

Conversation

AzisK
Copy link
Contributor

@AzisK AzisK commented Sep 5, 2023

  • Bump fireant version to 8.0.0
  • Drop support for Python3.7 as pandas v2 does not support it
  • Add Python3.9 support
  • Use the newest pandas (2.0.3 in requirements) and add the minimum version 2.0.0 of pandas to pyproject.toml
  • Use the newest vertica-python (1.3.4 in requirements) and add the minimum version 1.0.0 of vertica-python to pyproject.toml
  • Use the newest snowflake-connector-python (3.0.4 in requirements) and add the minimum version 3.0.0 of snowflake-connector-python to pyproject.toml
  • Use the newest coverage (7.3.0 in requirements) and add the minimum version 7.3.0 of coverage to pyproject.toml
  • Use the newest watchdog (3.0.0 in requirements) and add the minimum version 3.0.0 of watchdiog to pyproject.toml
  • Remove python-dateutil from dependencies as it is part of other libraries' dependencies
  • Bump psycopg-binary==2.9.6 though it seems not needed for the tests
  • Bump pymssql==2.2.7 though it seems not needed for the tests
  • Bump Cython==3.0.0 though it seems not needed for the tests
  • Get rid of SyntaxWarning: "is" with a literal. Did you mean "=="?
  • Get rid of DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  • Replace Dataframe.append to pd.concat because append does not exist since pandas v2
  • Add group_keys=False to DataFrame.groupby() method because it is no longer ignored since pandas v1.5
  • Fix _apply_share method for Shares with the new libraries.
  • Rename TestDatabase to MockDatabase since it is used only for mocking. This is beneficial also because Python testing method will not delve into it to find methods to run
  • Rename test_connect and test_fetch to mock_connect and mock_fetch as these are mocks. This is beneficial also because Python testing method will not delve into it to find methods to run
  • Rename TestMySQLDatabase to MockMySQLDatabase for the same reason
  • When concatenating DataFrames, use .tail(1) instead of .iloc[-1] as it includes indexes
  • Use static CSVs to get the expected DataFrames in tests instead of applying methods of fireant to a DataFrame to get those expected DataFrames
  • Replace np.float to float since it was deprecated
  • Get rid of None and [] as ascending parameters for Pandas class
  • Replace .iteritems() with .items() as the former method was deprecated

- Bump fireant version to 8.0.0
- Drop support for Python3.7 as pandas v2 does not support it
- Add Python3.9 support
- Use the newest `pandas` (2.0.3 in requirements) and add the minimum version 2.0.0 of `pandas` to pyproject.toml
- Use the newest `vertica-python` (1.3.4 in requirements) and add the minimum version 1.0.0 of `vertica-python`  to pyproject.toml
- Use the newest `snowflake-connector-python` (3.0.4 in requirements) and add the minimum version 3.0.0 of `snowflake-connector-python` to pyproject.toml
- Use the newest `coverage` (7.3.0 in requirements) and add the minimum version 7.3.0 of `coverage` to pyproject.toml
- Use the newest `watchdog` (3.0.0 in requirements) and add the minimum version 3.0.0 of `watchdiog` to pyproject.toml
- Remove `python-dateutil` from dependencies as it is part of other libraries' dependencies
- Bump `psycopg-binary==2.9.6` though it seems not needed for the tests
- Bump `pymssql==2.2.7` though it seems not needed for the tests
- Bump `Cython==3.0.0` though it seems not needed for the tests
- Get rid of `SyntaxWarning: "is" with a literal. Did you mean "=="?`
- Get rid of `DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working`
- Replace `Dataframe.append` to `pd.concat` because `append` does not exist since pandas v2
- Add `group_keys=False` to `DataFrame.groupby()` method because it is no longer ignored since pandas v1.5
- Fix `_apply_share` method for `Share`s with the new libraries.
- Rename `TestDatabase` to `MockDatabase` since it is used only for mocking. This is beneficial also because Python testing method will not delve into it to find methods to run
- Rename `test_connect` and `test_fetch` to `mock_connect` and `mock_fetch` as these are mocks. This is beneficial also because Python testing method will not delve into it to find methods to run
- Rename `TestMySQLDatabase` to `MockMySQLDatabase` for the same reason
- When concatenating `DataFrames`, use `.tail(1)` instead of `.iloc[-1]` as it includes indexes
- Use static CSVs to get the expected `DataFrames` in tests instead of applying methods of `fireant` to a `DataFrame` to get those expected `DataFrames`
- Replace `np.float` to `float` since it was deprecated
- Get rid of `None` and `[]` as `ascending` parameters for `Pandas` class
- Replace `.iteritems()` with `.items()` as the former method was deprecated
@AzisK AzisK requested a review from a team as a code owner September 5, 2023 07:54
@AzisK
Copy link
Contributor Author

AzisK commented Sep 5, 2023

Bump fireant version to 8.0.0 instead of 7.10.0 because Python3.7 support was dropped and pandas v2 has been introduced. This introduces breaking changes

@AzisK AzisK merged commit 4a1216f into master Sep 5, 2023
4 checks passed
@AzisK AzisK deleted the Bump-pandas-to-v2 branch September 5, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant