Bot detection

For this work we use the . If we remove users that have had a session length that is too long then this has an effect on the number of users that we see over time. You can set the threshold below And the chart below will update automatically

Code appendix

Let's download the dataset first.

Next, we read it into polars so that we may apply a pipeline.

Part of the pipeline is "cached". This is the part of the pipeline that does not change if we change the slider value.

This way, only this function runs when we need it.