Sources
Every lesson is checked against the official Python, Jupyter, NumPy and pandas documentation, and every example is run with Python 3.14 so its output and error messages match. Ideas from outside Python, Jupyter, NumPy and pandas, such as class diagrams or a named principle, cite where they come from, and comparisons with other languages cite those languages' own documentation. These are the pages each lesson relies on.
The Python Standard Library
Other Python documentation
Python Packaging User Guide
pandas
- Categorical data Used in 3.7, 4.9
- Copy-on-Write Used in 3.6
- DataFrame.corr Used in 8.9
- DataFrame.div Used in 9.4
- DataFrame.melt Used in C.3
- DataFrame.sample Used in 8.3
- DataFrameGroupBy.agg Used in 4.1
- DataFrameGroupBy.sample Used in 8.3
- Descriptive statistics Used in 8.1
- Enhancing performance Used in 4.10
- Essential basic functionality Used in 9.1
- Essential basic functionality, dtypes Used in 3.7
- Group by, filtration Used in 4.2
- Group by, transformation Used in 4.2
- Group by: split-apply-combine Used in 4.1
- Indexing and selecting data Used in 3.4
- Intro to data structures, DataFrame Used in 3.2
- Intro to data structures, Series Used in 3.1
- IO tools, CSV and text files Used in 3.3
- IO tools, iterating through files chunk by chunk Used in 4.11
- Merge, join, concatenate and compare Used in 4.3
- MultiIndex / advanced indexing Used in 4.5
- Nullable integer data type Used in 3.7
- Package overview Used in 1.1
- pandas user guide For the whole course
- pandas.cut Used in 4.9
- pandas.DataFrame.asfreq Used in 4.7
- pandas.DataFrame.assign Used in 3.6, 4.10
- pandas.DataFrame.describe Used in 3.2, C.4
- pandas.DataFrame.drop_duplicates Used in 3.P
- pandas.DataFrame.dropna Used in 3.8
- pandas.DataFrame.duplicated Used in 5.7
- pandas.DataFrame.fillna Used in 3.8
- pandas.DataFrame.info Used in 3.2
- pandas.DataFrame.loc Used in 3.4
- pandas.DataFrame.merge Used in 4.3, 4.P, 5.8
- pandas.DataFrame.nlargest Used in 3.5
- pandas.DataFrame.pipe Used in 4.10, 5.10, C.3
- pandas.DataFrame.pivot_table Used in 4.4, 4.P
- pandas.DataFrame.query Used in 3.4
- pandas.DataFrame.reset_index Used in 4.5
- pandas.DataFrame.set_index Used in 4.5
- pandas.DataFrame.sort_values Used in 3.5
- pandas.DataFrame.to_csv Used in 3.3
- pandas.json_normalize Used in 5.4, 5.P
- pandas.qcut Used in 4.9
- pandas.read_csv Used in 3.3, 5.2, 9.2, C.2
- pandas.read_excel Used in 5.2
- pandas.read_json Used in 3.3
- pandas.read_sql Used in 5.3, 5.P
- pandas.Series.add Used in 3.1
- pandas.Series.between Used in 3.4
- pandas.Series.map Used in 3.6
- pandas.Series.pct_change Used in 4.7, 9.5, 9.6
- pandas.Series.quantile Used in 5.7
- pandas.Series.rank Used in 3.5
- pandas.Series.rolling Used in 6.9
- pandas.Series.str.split Used in 5.5
- pandas.Series.value_counts Used in 3.1
- pandas.to_datetime Used in 3.7, 3.P, 4.6
- pandas.to_numeric Used in 3.7
- pivot_table Used in 9.7, 9.P
- Reshaping and pivot tables Used in 4.4, 5.5
- Scaling to large datasets Used in 4.11
- Time series / date functionality Used in 4.6
- Time series / date functionality, resampling Used in 4.7, 4.P
- What’s new in 3.0.0 Used in 3.6
- Windowing operations Used in 4.7
- Working with missing data Used in 3.8, 5.6, 9.2
- Working with text data Used in 3.5, 4.8
OpenIntro
- Diez, Çetinkaya-Rundel and Barr, OpenIntro Statistics, 4th ed. Used in 8.1, 8.3, 8.4, 8.6, 8.8, 8.9, 8.10, 8.11, 8.12, 9.3, 9.4, 9.7, 9.8, 9.10, 10.1, 10.7, C.5
Papers
- Anscombe, Graphs in Statistical Analysis, The American Statistician 27(1), 1973 Used in 6.1, 8.9
- Armitage, McPherson and Rowe, Repeated Significance Tests on Accumulating Data, Journal of the Royal Statistical Society A 132(2), 1969 Used in 8.12
- Becker and Cleveland, Brushing Scatterplots, Technometrics 29(2), 1987 Used in 7.5
- Becker, Cleveland and Shyu, The Visual Design and Control of Trellis Display, Journal of Computational and Graphical Statistics 5(2), 1996 Used in 7.6
- Benjamini and Hochberg, Controlling the False Discovery Rate, Journal of the Royal Statistical Society B 57(1), 1995 Used in 8.7
- Bickel, Hammel and O'Connell, Sex Bias in Graduate Admissions: Data from Berkeley, Science 187(4175), 1975 Used in 8.11
- Borland and Taylor, Rainbow Color Map (Still) Considered Harmful, IEEE Computer Graphics and Applications 27(2), 2007 Used in 6.7
- Broman and Woo, Data organization in spreadsheets (The American Statistician, 2018) Used in 1.5, 1.P, 3.P, 5.2, 5.P, 9.3
- Card and Krueger, Minimum Wages and Employment: A Case Study of the Fast-Food Industry in New Jersey and Pennsylvania, NBER Working Paper 4509, 1993 (published in the American Economic Review, 1994) Used in 8.P
- Carr, Littlefield, Nicholson and Littlefield, Scatterplot Matrix Techniques for Large N, Journal of the American Statistical Association 82(398), 1987 Used in 7.4
- Cleveland and McGill, Graphical Perception, Journal of the American Statistical Association 79(387), 1984 Used in 6.4
- Cleveland, McGill and McGill, The Shape Parameter of a Two-Variable Graph, Journal of the American Statistical Association 83(402), 1988 Used in 6.8
- Codd, A Relational Model of Data for Large Shared Data Banks, Communications of the ACM 13(6), 1970 Used in 4.3
- Correll, Bertini and Franconeri, Truncating the Y-Axis: Threat or Menace?, CHI 2020 Used in 6.8
- Crameri, Shephard and Heron, The misuse of colour in science communication, Nature Communications 11, 2020 Used in 6.7
- Efron, Bootstrap Methods: Another Look at the Jackknife, Annals of Statistics 7(1), 1979 Used in 8.5, 8.P
- Gelman and Loken, The Statistical Crisis in Science, American Scientist 102(6), 2014 Used in 8.7
- Gorman, Williams and Fraser, Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins, PLOS ONE 9(3), 2014 Used in 7.1
- Greenland et al., Statistical tests, P values, confidence intervals, and power: a guide to misinterpretations, European Journal of Epidemiology 31, 2016 Used in 8.5, 8.6
- Harris et al., Array programming with NumPy, Nature 585, 2020 Used in 2.1, 2.6, 2.9, 2.P
- Heer and Bostock, Crowdsourcing Graphical Perception, CHI 2010 Used in 6.4
- Hintze and Nelson, Violin Plots: A Box Plot-Density Trace Synergism, The American Statistician 52(2), 1998 Used in 7.3
- Horst, Hill and Gorman, palmerpenguins: Palmer Archipelago (Antarctica) penguin data, 2020 Used in 7.1
- Hunter, Matplotlib: A 2D Graphics Environment, Computing in Science & Engineering 9(3), 2007 Used in 6.1
- Kohavi, Tang and Xu, Trustworthy Online Controlled Experiments, Cambridge University Press, 2020 Used in 8.12
- Limpert, Stahel and Abbt, Log-normal Distributions across the Sciences, BioScience 51(5), 2001 Used in 8.2
- Machado, Oliveira and Fernandes, A Physiologically-based Model for Simulation of Color Vision Deficiency, IEEE TVCG 15(6), 2009 Used in 6.7, C.6
- Mann and Whitney, On a Test of Whether one of Two Random Variables is Stochastically Larger than the Other, Annals of Mathematical Statistics 18(1), 1947 Used in 8.8
- Matejka and Fitzmaurice, Same Stats, Different Graphs, CHI 2017 Used in 6.1
- McKinney, Data Structures for Statistical Computing in Python, SciPy 2010 Used in 3.1, 3.2
- Narayanan and Shmatikov, Robust de-anonymization of large sparse datasets (IEEE Symposium on Security and Privacy, 2008) Used in 10.6
- Newman, Power laws, Pareto distributions and Zipf’s law, Contemporary Physics 46(5), 2005 Used in 8.4
- Nosek et al., The preregistration revolution, PNAS 115(11), 2018 Used in 8.7
- Pearl, Causal inference in statistics: An overview, Statistics Surveys 3, 2009 Used in 8.11
- Pimentel et al., A large-scale study about quality and reproducibility of Jupyter notebooks (MSR 2019) Used in 1.3
- Raasveldt and Mühleisen, DuckDB: an Embeddable Analytical Database, SIGMOD 2019 Used in 4.11
- Rubin, Inference and missing data, Biometrika 63(3), 1976 Used in 3.8, 5.6
- Satyanarayan, Moritz, Wongsuphasawat and Heer, Vega-Lite: A Grammar of Interactive Graphics, IEEE TVCG 23(1), 2017 Used in 7.9
- Scott, On optimal and data-based histograms, Biometrika 66(3), 1979 Used in 7.2
- Seabold and Perktold, statsmodels: Econometric and statistical modeling with Python, Proceedings of the 9th Python in Science Conference, 2010 Used in 8.10
- Shiffler, Maximum Z Scores and Outliers, The American Statistician 42(1), 1988 Used in 5.7
- Simmons, Nelson and Simonsohn, False-Positive Psychology, Psychological Science 22(11), 2011 Used in 8.7
- Simpson, The Interpretation of Interaction in Contingency Tables, Journal of the Royal Statistical Society B 13(2), 1951 Used in 8.11
- Spiegelhalter, Funnel plots for comparing institutional performance (Statistics in Medicine, 2005) Used in 9.8
- Squire, Why the 1936 Literary Digest Poll Failed, Public Opinion Quarterly 52(1), 1988 Used in 8.3
- Student, The Probable Error of a Mean, Biometrika 6(1), 1908 Used in 8.5
- Sweeney, k-anonymity: a model for protecting privacy (International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems, 2002) Used in 10.6
- Tukey, Exploratory Data Analysis, Addison-Wesley, 1977 (as discussed in Brillinger, John W. Tukey: His Life and Professional Contributions, Annals of Statistics 30(6), 2002) Used in 7.P, 9.1, C.4
- van Buuren, Flexible Imputation of Missing Data, 2nd edition (CRC Press, 2018) Used in 5.6
- van der Walt et al., scikit-image: image processing in Python, PeerJ 2:e453, 2014 Used in 2.12
- VanderPlas et al., Altair: Interactive Statistical Visualizations for Python, Journal of Open Source Software 3(32), 2018 Used in 7.9
- Waskom, seaborn: statistical data visualization, Journal of Open Source Software 6(60), 2021 Used in 7.1
- Wasserstein and Lazar, The ASA Statement on p-Values: Context, Process, and Purpose, The American Statistician 70(2), 2016 Used in 8.6
- Weissgerber, Milic, Winham and Garovic, Beyond Bar and Line Graphs: Time for a New Data Presentation Paradigm, PLOS Biology 13(4), 2015 Used in 7.3
- Wickham, A Layered Grammar of Graphics, Journal of Computational and Graphical Statistics 19(1), 2010 Used in 7.7
- Wickham, The Split-Apply-Combine Strategy for Data Analysis, Journal of Statistical Software 40(1), 2011 Used in 4.1, 4.2
- Wickham, Tidy Data, Journal of Statistical Software 59(10), 2014 Used in 1.1, 1.P, 3.P, 4.4, 5.5, C.3
- Wilkinson and others, The FAIR Guiding Principles for scientific data management and stewardship (Scientific Data, 2016) Used in C.9
- Wilkinson, The Grammar of Graphics, 2nd ed., Springer, 2005 Used in 7.7
- Wilson et al., Good enough practices in scientific computing (PLOS Computational Biology, 2017) Used in 1.5, 5.9, 5.10, 9.1, 9.3
W3C Web Accessibility Initiative
Other
- Climate Hazards Center, UC Santa Barbara: CHIRPS Used in C.1
- Creative Commons: About CC licenses Used in 5.1, C.10
- Creative Commons: Attribution 4.0 International Used in C.1, C.9
- Git: gitignore documentation Used in 10.5, 10.P
- Humanitarian Data Exchange: Philippines, Rainfall Indicators at Subnational Level Used in C.1
- Hyndman and Athanasopoulos, Forecasting: Principles and Practice, 3rd ed., chapter 3 Used in 9.6, C.5
- Hyndman and Athanasopoulos, Forecasting: Principles and Practice, 3rd ed., section 5.2 Used in 9.9, 9.P
- Hyndman and Athanasopoulos, Forecasting: Principles and Practice, 3rd ed., section 5.5 Used in 9.9
- Munroe, Significant, xkcd 882 Used in 8.7
- National Privacy Commission: Data Privacy Act of 2012 Used in 5.1, 10.6
- nbconvert: Configuration options Used in 10.5
- nbconvert: Executing notebooks Used in 10.2, C.10
- nbconvert: Removing cells, inputs, or outputs Used in 10.2
- nbconvert: Using as a command line tool Used in 10.2
- nbdime: Console commands Used in 10.5
- nbdime: Version control integration Used in 10.5
- NIST/SEMATECH e-Handbook of Statistical Methods: Cauchy Distribution Used in 8.4
- NIST/SEMATECH e-Handbook of Statistical Methods: Detection of outliers Used in 5.7
- NIST/SEMATECH e-Handbook of Statistical Methods: Gallery of Distributions Used in 8.2
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Location Used in 8.1
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Scale Used in 8.1
- NIST/SEMATECH e-Handbook of Statistical Methods: Normal Probability Plot Used in 8.2
- NOAA NCEI: GHCN-Daily files Used in C.2
- NOAA NCEI: Global Historical Climatology Network daily (GHCNd) Used in C.1
- Open Data Philippines Used in 5.1
- openpyxl documentation Used in 5.2
- OWASP: SQL Injection Prevention Cheat Sheet Used in 5.3
- PAGASA Used in 5.1
- PAGASA: Climate data Used in C.1
- pandera documentation Used in 5.9
- PEP 8: Imports Used in 1.3
- PEP 465: A dedicated infix operator for matrix multiplication Used in 2.11
- Philippine Statistics Authority, 2020 Census of Population and Housing: population counts declared official by the President Used in 9.4, 10.7
- Philippine Statistics Authority: Consumer Price Index and inflation rate Used in 9.5, 9.P, C.5
- Philippine Statistics Authority: OpenSTAT Used in 5.1, 9.5, C.2
- Philippine Statistics Authority: OpenSTAT terms of use Used in C.1, C.9
- Philippine Statistics Authority: Philippine Standard Geographic Code Used in 5.8, 9.8, C.3
- pip: pip freeze Used in 10.4
- Pro Git, 2nd ed., section 2.2: Recording changes to the repository Used in 10.5
- Pro Git, 2nd ed., section 2.5: Working with remotes Used in C.10
- Quarto: Cross-references Used in C.7
- Quarto: Parameters Used in 10.2, 10.P
- Quarto: Using Python Used in 10.2, C.7
- Registry of Open Data on AWS: NOAA Global Historical Climatology Network Daily Used in C.1
- Requests: Quickstart Used in 5.4
- RFC 8259: The JSON Data Interchange Format Used in 5.4
- SQLite: The SELECT statement Used in 5.3
- Streamlit: Get started Used in 10.3
- Streamlit: Main concepts (data flow) Used in 10.3
- Streamlit: st.altair_chart Used in C.8
- Streamlit: st.cache_data Used in 10.3, 10.P, C.8
- Streamlit: st.metric Used in 10.3
- World Bank: Terms of use for datasets Used in 5.1
- ydata-profiling documentation Used in 9.2