Created
February 8, 2020 17:37
-
-
Save CharlyWargnier/ea4f60028812bf9ada61fe540309e66e 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
DfPivotCodes = df.groupby(['httpCode']).agg({'httpCode': ['count']}) | |
DfPivotCodes.columns = ['_'.join(multi_index) for multi_index in DfPivotCodes.columns.ravel()] | |
DfPivotCodes = DfPivotCodes.reset_index() | |
DfPivotCodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment