Created
January 27, 2019 17:19
-
-
Save adiamaan92/6ac95622ce9dd73d237ca6b17b2d5543 to your computer and use it in GitHub Desktop.
This file contains 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
def csnap(df, fn=lambda x: x.shape, msg=None): | |
""" Custom Help function to print things in method chaining. | |
Returns back the df to further use in chaining. | |
""" | |
if msg: | |
print(msg) | |
display(fn(df)) | |
return df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment