Skip to content

Draft: [SIGMON-509] adapt the current codebase to be compatible with pandas 2.0.0

Context

  • Pandas new major release 2.0.0 was released April 3, 2023. This new iteration removes a number of deprecated methods.
  • The SWAN environment is currently in version 1.2.2, but some of our users are using this project locally, meaning that they might have dependencies errors if they have the latest version of this package installed

What was done

  • Replace the deprecated append method with the concat function.
  • Make test only check for expected warnings
  • Remove the creation of a file in a test that was bothering be

TODO

  • Write acceptance tests (pipeline with pandas>=2.0.0?)
  • Make sure the new code is compatible with pandas 1.2.2

QA

Review objectives

  • assessment of code functionality
  • assessment of code quality
Edited by Simon Mazenoux

Merge request reports