-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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
pandera/schemas.py
Outdated
|
||
# We iterate over the existing columns dict and replace those keys | ||
# that exist in the rename_dict | ||
new_schema = deepcopy(self) |
There was a problem hiding this comment.
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
thanks for you contribution @baskervilski ! |
#201