Skip to content

Instantly share code, notes, and snippets.

@wibowotangara
Created January 18, 2024 07:04
Show Gist options
  • Save wibowotangara/1aa2eab07fd960d7b671cafdb1852b38 to your computer and use it in GitHub Desktop.
Save wibowotangara/1aa2eab07fd960d7b671cafdb1852b38 to your computer and use it in GitHub Desktop.
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