Skip to content
Snippets Groups Projects

Avoid pandas deprecation warning

Merged Colm Talbot requested to merge pandas-frame-append into master

I'm getting the deprecation message below when making pp-plots. I've added a workaround by generating a list of the credible levels and then converting the whole thing to a data frame at the end. I haven't verified this, but I would guess that this will also give a small performance bump.

/home/colm.talbot/modules/bilby/bilby/core/result.py:2004: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  credible_levels = credible_levels.append(

Merge request reports

Pipeline #398674 passed

Pipeline passed for bde0e664 on pandas-frame-append

Test coverage 62.00% (0.00%) from 2 jobs
Approved by

Merged by Colm TalbotColm Talbot 2 years ago (May 23, 2022 1:09pm UTC)

Merge details

  • Changes merged into master with 2fcaeb31 (commits were squashed).
  • Deleted the source branch.

Pipeline #400536 passed

Pipeline passed for 2fcaeb31 on master

Test coverage 63.00% (0.00%) from 2 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading