Created
January 18, 2024 07:04
-
-
Save wibowotangara/1aa2eab07fd960d7b671cafdb1852b38 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 inspect_data(df, col=None, n_rows=5): | |
print(f'data shape: {df.shape}') | |
if col is None: | |
col = df.columns | |
display(df[col].head(n_rows)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment