Skip to content
Pythoneo: Python Programming, Seaborn & Plotly Tutorials

Master Python: How-To Tutorials & Solutions for Coders

  • Home
  • Privacy Policy
  • About
  • Cookie Policy
  • Home
  • Privacy Policy
  • About
  • Cookie Policy
  • statistics

    How to Calculate Deciles in Python Using statistics.quantiles (Decile Definition and Example)

    March 2, 2021

    Deciles divide a dataset into ten equal parts, each representing 10% of the data. For example, the first decile represents the point below which 10% of the data falls, the second decile represents the point below which 20% of the data falls, and so on. Let’s see how to calculate deciles in Python using the statistics.quantiles function with n=10, which returns the cut points that split your data into ten equal parts.

    Continue Reading
  • statistics

    How to Calculate Quartiles and Interquartile Range (IQR) in Python (statistics.quantiles and NumPy)

    March 2, 2021

    Let’s see how to calculate quartiles in Python using the statistics.quantiles function for Q1, Q2, and Q3, and NumPy to compute the interquartile range (IQR).

    Continue Reading
  • statistics

    How to Calculate Multimode in Python Using the statistics Module (Mode vs Multimode Explained)

    March 2, 2021

    Mode represents the single most frequent value in a list, while multimode provides a list of all the values that occur with the highest frequency. In statistical analysis, the mode is a measure of central tendency that identifies the most frequently occurring value in a dataset. However, datasets can sometimes exhibit multiple modes, where two or more values share the highest frequency. In such cases, the multimode becomes a valuable descriptive statistic, providing a more complete picture of the data’s distribution by highlighting all values that achieve this maximum frequency. This tutorial shows how to calculate multimode in Python using…

    Continue Reading
  • statistics - numpy

    How to Calculate Mode in Python (statistics.mode, NumPy bincount/argmax, and Examples)

    March 2, 2021

    Let’s see how to calculate mode in Python.

    Continue Reading
  • statistics - numpy - Scipy

    How to Calculate Geometric Mean in Python (statistics.geometric_mean, NumPy, and SciPy Examples)

    March 2, 2021

    This guide shows how to calculate geometric mean in Python using the statistics module, NumPy logarithmic method, or SciPy’s gmean function for data analysis tasks. The geometric mean is a measure of central tendency that is useful for dealing with data that has a wide range of values and is often used in finance, biology, and other fields.

    Continue Reading
  • statistics

    How to Calculate Harmonic Mean in Python (statistics.harmonic_mean, SciPy, and Manual Methods)

    March 2, 2021

    The harmonic mean is a type of average useful for rates and ratios, and this guide shows how to calculate harmonic mean in Python using the built-in statistics module, SciPy, or manual formulas. Let’s see how to calculate harmonic mean in Python.

    Continue Reading

Resources

  • Matplotlib Master Hub + Recipes
  • OpenCV Master Hub + Recipes
  • Seaborn Master Hub + Recipes
  • Tkinter Master Hub + Patterns
  • SciPy Optimize Cookbook (minimize, least_squares, linprog)
  • Plotly Maps & Geo Cookbook
  • Paramiko Master Hub + Production Cookbook
  • NumPy Master Hub + Cheatsheets
  • Ultimate Python Cheatsheet + Gotchas
  • Django Master Hub + Recipes

Tags

array axis button calculations chart column conversion count data type dimension draw dtype empty error fill float generate grid GUI image index integer list matrix max mean min mode multiply normal distribution number pie plot random reshape rotate round rows size string sum test text time zero

Categories

  • bokeh (6)
  • Django (13)
  • FastAPI (1)
  • matplotlib (13)
  • numpy (121)
  • OpenCV (7)
  • Pandas (6)
  • paramiko (63)
  • Pillow (6)
  • Plotly (23)
  • Python (72)
  • Scipy (9)
  • Seaborn (25)
  • statistics (6)
  • Tkinter (34)
  • turtle (2)

RSS RSS

  • FastAPI Complete Guide: Building Production APIs
  • Plotly Scatter Plot Tutorial: Interactive Data Exploration
  • Python Data Visualization Best Practices: Creating Effective Charts
  • Matplotlib vs Seaborn: Which Library Should You Use?
  • Seaborn Pair Plots: Multivariate Relationship Visualization
  • Django Messages Framework: User Feedback Done Right
  • Seaborn Distribution Plots: Histograms, KDE And Rug Plots
  • Plotly Animated Line Chart: Visualizing Change Over Time
  • Plotly Box Plot And Violin Plot: Statistical Distributions
  • Seaborn FacetGrid Tutorial: Small Multiples For Data Stories
Graceful Theme by Optima Themes