Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lauriestark/42e16898ed83c0f5b28114436c6a05e3 to your computer and use it in GitHub Desktop.
Save lauriestark/42e16898ed83c0f5b28114436c6a05e3 to your computer and use it in GitHub Desktop.
# Get the number of rows and columns
num_rows, num_cols = df.shape
# Print the number of rows
print(f"The file has {num_rows} rows.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment