Created
May 11, 2020 19:06
-
-
Save Shikhargupta/26ad254a858a7bb8b5a6d95e824fa0f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Square | |
| for col in poly_cols: | |
| df_cum[col + '_square'] = df_cum[col]**2 | |
| #Cube | |
| for col in poly_cols: | |
| df_cum[col + '_cube'] = df_cum[col]**3 | |
| #Square root | |
| for col in poly_cols: | |
| df_cum[col + '_sqrt'] = df_cum[col]**0.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment