pandas and NumPy 3 · Loading and inspecting
Look at the first rows
Show the first rows. Use tail() for the last ones.
df.head()
Official pandas and NumPy 3 documentation
More loading and inspecting commands
- Import the libraries
- Read a CSV file
- Read Excel, JSON or Parquet
- Check columns and types
- Summarize numeric columns
- Get the dimensions
All loading and inspecting commands · pandas and NumPy 3 cheatsheet