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

Replace deprecated DataFrame.append with pandas.concat in meta_base.py #1487

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

EricPedley
Copy link
Contributor

@EricPedley EricPedley commented May 29, 2022

Message of deprecation from pandas docs
The warning I'm talking about:
image

Also removed a loop that wasn't doing anything. DataFrame.append doesn't operate in place so that second loop wasn't causing any side effects, and it was also just adding empty series anyway. If anyone has any insight about why that was there in the first place that would be nice.

Let me know if I need to elaborate more or write tests or anything else. It's a small change to existing code so I wasn't sure if it's necessary.

lso removed a loop that wasn't doing anything. DataFrame.append doesn't operate in place so that second loop wasn't causing any side effects, and it was also just adding empty series anyway. If anyone has any insight about why that was there in the first place that would be nice.
@codecov
Copy link

codecov bot commented May 29, 2022

Codecov Report

Merging #1487 (edf4913) into development (4b21134) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           development    #1487      +/-   ##
===============================================
- Coverage        84.22%   84.21%   -0.02%     
===============================================
  Files              151      151              
  Lines            11488    11485       -3     
  Branches          1994     1993       -1     
===============================================
- Hits              9676     9672       -4     
- Misses            1279     1281       +2     
+ Partials           533      532       -1     

Impacted file tree graph

@eddiebergman
Copy link
Contributor

Hey @EricPedley,

This seems good :) Thanks for the contribution! I couldn't tell you exactly why that was there but I trust the tests will make sure that nothing is broken. I'll run our more comprehensive benchmark and let you know, just to make sure it didn't somehow actually silently drop performance somehow by not having some information available.

Best,
Eddie

@eddiebergman eddiebergman merged commit 0c8f2a0 into automl:development Jun 2, 2022
@eddiebergman
Copy link
Contributor

Thanks for the contribution :)

github-actions bot pushed a commit that referenced this pull request Jun 2, 2022
eddiebergman pushed a commit that referenced this pull request Aug 18, 2022
lso removed a loop that wasn't doing anything. DataFrame.append doesn't operate in place so that second loop wasn't causing any side effects, and it was also just adding empty series anyway. If anyone has any insight about why that was there in the first place that would be nice.
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.

2 participants