Statistical analysis of data sets begins with understanding fundamental operations that reveal patterns within your data. We'll start by examining a Python list containing temperature readings—our degrees dataset that demonstrates core statistical concepts applicable to any numerical data collection.

While you can visually scan this particular dataset—mostly summer temperatures with one outlier at 48 degrees—real-world data analysis involves thousands or millions of data points where manual inspection becomes impossible. Professional data scientists regularly work with datasets containing hundreds of thousands of records, making programmatic analysis essential.

Finding minimum and maximum values represents the foundation of statistical analysis. Python provides built-in functions that make this straightforward. To find the lowest temperature in our dataset, we use Python's min() function applied to our degrees list.

Here's a productivity tip that saves significant time during analysis: use Command+Enter on macOS or Ctrl+Enter on Windows and Linux to execute code blocks without reaching for your mouse. This keyboard shortcut becomes invaluable during intensive data analysis sessions where you're running dozens of calculations.

When we execute min(degrees), Python returns 48—confirming our visual assessment but demonstrating the programmatic approach that scales to any dataset size.

The max() function works identically, returning the highest value in our temperature dataset. While this seems basic with small datasets, these functions become powerful tools when analyzing complex business data, financial records, or scientific measurements.

Moving beyond simple lists, let's examine real-world applications using pandas DataFrames—the industry standard for data analysis in Python. Our automotive dataset contains 157 rows of car data, including year-end resale values measured in thousands of dollars.


Working with DataFrame columns requires specific syntax. To access a single column like "year resale value," we use bracket notation: cars["year resale value"]. This operation returns a pandas Series—a one-dimensional labeled array that forms the building block of DataFrame operations.

Understanding data types proves crucial in professional data analysis. The type() function reveals that our column selection creates a pandas Series, not a standard Python list. This distinction matters because Series objects have specialized methods optimized for data analysis.

Unlike Python lists, pandas Series use dot notation for statistical operations. The .min() method applied to our resale value column returns 5.16, indicating one vehicle retains only $5,160 of value after one year—a concerning depreciation rate that would interest automotive analysts and consumers alike.

Professional practice involves clear labeling of output. When printing results, include descriptive labels: print("Minimum resale value", cars["year resale value"].min()). This approach becomes essential when generating reports or sharing analysis with stakeholders.

The maximum resale value in our dataset reaches $68,000 after one year—impressive retention that suggests either luxury vehicles or models with exceptional market appeal. These extremes provide immediate insights into data distribution and potential outliers worth investigating.

Understanding mean (arithmetic average) calculations forms the cornerstone of statistical literacy. The mean represents the sum of all values divided by the count of values—a fundamental concept that appears throughout business intelligence, financial analysis, and scientific research.


Python offers multiple approaches to calculate means. The manual method uses built-in functions: sum(degrees) / len(degrees). This explicit calculation helps reinforce the underlying mathematical concept, particularly valuable when explaining methodology to non-technical stakeholders.

NumPy provides a more elegant solution with its .mean() method, which handles the calculation internally while offering superior performance on large datasets. Professional data scientists prefer NumPy for its computational efficiency and extensive statistical function library.

Data presentation matters in professional contexts. Raw calculations often produce excessive decimal precision that obscures practical meaning. Python's round() function lets you specify decimal places appropriate for your context—typically one decimal place for temperature data, matching common weather reporting standards.

The rounded mean temperature of 79.4 degrees provides actionable information without false precision. This attention to appropriate significant figures distinguishes professional analysis from academic exercises and ensures your findings resonate with business audiences who need clear, interpretable results.