Posts tagged with Pandas

  • Where are my Magic: the Gathering cards ?

    Thumbnail for Where are my Magic: the Gathering cards ?

    Since a few months I’ve been selling some Magic: the Gathering cards on CardMarket. Last week I realized I could extract the address from buyers from eml files (exported emails) with orders. From those the (approximate*) location using Google’s Geocoding API can be found and plotted using Altair. This gives...

  • Plotting post hoc tests with Python

    Thumbnail for Plotting post hoc tests with Python

    When three or more groups of samples are compared (e.g. Using ANOVA/Tukey HSD or Kruskal-Wallis/Dunn), you’ll often see results shown as a boxplot, with lines highlighting which groups are significantly different. In Python there is no single package to do this quickly, though by combining scikit-posthocs with statannotations similar plots...

  • Altair + Vega + Justcharts = Interactive Visualisations in Static Websites

    Thumbnail for Altair + Vega + Justcharts = Interactive Visualisations in Static Websites

    Despite being a huge proponent of using interactive plots when publishing data visualisations on the web, the plots on this blog are all static. Using Altair, Vega and a little library justcharts all pieces finally fell into place to start practicing what I’ve been preaching on this blog as well!...

  • Fighting Batch Effects with pyComBat

    Thumbnail for Fighting Batch Effects with pyComBat

    Even high-end scientific equipment can have a bad day! Machine performance can be affected by ambient temperature, humidity, … so when samples are measured in different batches, this needs to be corrected for. In this post we’ll have a look at the Python package pyComBat which does this elegantly and...

  • PCA Plots with Loadings in Python

    Thumbnail for PCA Plots with Loadings in Python

    Like the previous Code Nugget, this bit of code will add some often needed features to PCA plots done with Python. Here the loadings and variance explained will be added to the plot, this is something that is included by default in R’s biplot(), but in Python there is more...

  • Correlation Heatmaps with Significance in Python

    Thumbnail for Correlation Heatmaps with Significance in Python

    While Pandas and Seaborn offer very quick ways to calculate correlations and show them in a heatmap. Whether those correlations are statistically significant or not is omitted from those plots. Over the years I’ve collected bits and pieces of code, like this, that turn out to be quite useful. Though...

  • Gwent: How Many Pro Players Are Out There ?

    Thumbnail for Gwent: How Many Pro Players Are Out There ?

    I noticed that some people ended up on my blog by searching Google for “gwent how many players in pro rank”. They would have been disappointed as there is no answer to that question yet, let’s see if we can change that! In this post using data science and web...

  • An Agent Based Model to look at Gwent Pro Ladder (results)

    Thumbnail for An Agent Based Model to look at Gwent Pro Ladder (results)

    With the Agent Based Model (ABM) from the previous post we can simulate any number of Gwent players, with known skill and play rate, playing throughout a season. Using this model we’ll try to get a firmer grasp on the ladder system and test whether this rewards skill or grinding...

  • An Agent Based Model to look at Gwent Pro Ladder (code)

    Thumbnail for An Agent Based Model to look at Gwent Pro Ladder (code)

    With the data that can be pulled from Gwent Masters assessing whether playing more will result in a higher ranking is difficult. So answering whether it is skill vs grinding games that will help you further, is challenging from the data alone. However, with agent based models, where we can...

More posts tagged with Pandas

2020

2019