Created
April 9, 2019 16:57
-
-
Save dipanjanS/8627e5cd0576e3e3b298117243a505fa 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
status_freq_df = (logs_df | |
.groupBy('status') | |
.count() | |
.sort('status') | |
.cache()) | |
print('Total distinct HTTP Status Codes:', status_freq_df.count()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment