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

Implemented rename_columns() #226

Merged
merged 9 commits into from
Jun 18, 2020

Conversation

baskervilski
Copy link
Contributor

@cosmicBboy cosmicBboy mentioned this pull request Jun 17, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2020

Codecov Report

Merging #226 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #226      +/-   ##
==========================================
+ Coverage   96.52%   96.54%   +0.01%     
==========================================
  Files          14       14              
  Lines        1238     1243       +5     
==========================================
+ Hits         1195     1200       +5     
  Misses         43       43              
Impacted Files Coverage Δ
pandera/io.py 90.27% <100.00%> (ø)
pandera/schemas.py 96.64% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f9294d...618f3f1. Read the comment docs.

Copy link
Collaborator

@cosmicBboy cosmicBboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽 see comment about deepcopy import


# We iterate over the existing columns dict and replace those keys
# that exist in the rename_dict
new_schema = deepcopy(self)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can reference copy.deepcopy here, since copy is already being imported

@cosmicBboy cosmicBboy merged commit 7433dc9 into unionai-oss:master Jun 18, 2020
@cosmicBboy
Copy link
Collaborator

thanks for you contribution @baskervilski !

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.

None yet

3 participants