Master Pandas, data cleaning, aggregations, and Matplotlib charting. Run code and view live output directly in your browser with Pyodide WebAssembly.
A Pandas DataFrame (`df`) is a two-dimensional labeled data structure with columns of potentially different types, similar to an Excel worksheet or SQL table.
DataFrames allow you to perform blazing-fast filtering, mathematical calculations, and transformations on thousands of spreadsheet rows with single-line commands.
Use whenever you load CSV, TSV, or Excel spreadsheets for exploratory analysis or machine learning pipelines.
df.shapeReturns a tuple representing the dimensionality (number of rows, number of columns).df.dtypesLists data types detected for each column (int64, float64, object/string).df.head()Returns the first 5 rows of the DataFrame for rapid visual inspection.Inspect summary descriptive statistics (mean, std, min, max, 25%, 75%) for all numeric columns in this dataset.
Explore our SQL curriculum or tackle full end-to-end industry projects.