Niko Föhr's Avatar

Niko Föhr

@fohrloop.com

pythonista, data scientist, optimizing my keyboard layout

65
Followers
397
Following
49
Posts
03.12.2024
Joined
Posts Following

Latest posts by Niko Föhr @fohrloop.com

Preview
pypistats.org is down · Issue #82 · crflynn/pypistats.org Hey @crflynn, I'm not sure if you're already aware of this, but, in case you're not, it looks like pypistats.org is down, unfortunately. This is what I see:

#pypistats has been down for two weeks, but now PSF is working on taking stewardship over the service

github.com/crflynn/pypi...

#python #pythonnews

15.08.2025 19:08 👍 0 🔁 0 💬 0 📌 0
Private EMPTY S3 Bucket COST ME $1300
Private EMPTY S3 Bucket COST ME $1300 YouTube video by ThePrimeTime

AWS Cloud service users: Be careful with S3 bucket naming

A private empty S3 bucket just caused a 1300 USD bill overnight. Someone knowing your bucket name can generate PUT requests towards it and basically do a "Denial of Wallet" (DoW) attack against you.

youtu.be/OWggTcVgiNg?...

04.04.2025 18:38 👍 0 🔁 0 💬 0 📌 0
Heatmap showing data for years 2018-2022. One pixel per day, organized weekly.

Heatmap showing data for years 2018-2022. One pixel per day, organized weekly.

dayplot looks like a great library for getting a yearly/monthly/weekly view on time-series data! 🚀📅

josephbarbierdarnal.github.io/dayplot/tuto...

#python #datascience #datavisualization

22.03.2025 15:56 👍 1 🔁 0 💬 0 📌 0

Faster* static type checking for Python is coming!

#python #redknot #red-knot

(*To be seen, but very, very likely)

30.01.2025 08:11 👍 0 🔁 0 💬 0 📌 0
Post image

#FreeJavaScript update: Oracle has informed us they won’t voluntarily withdraw their trademark on "JavaScript". Next: they’ll file their Answer and we’ll start discovery to show how "JavaScript" is widely recognized as a generic term and not controlled by Oracle.

08.01.2025 17:41 👍 962 🔁 126 💬 43 📌 18

Interesting. Do you know if there's some use case where this would be practical?

16.01.2025 09:47 👍 1 🔁 0 💬 1 📌 0
Preview
FastHTML Modern web applications in pure Python

Just bumped up to FastHTML. It's a new python web framework for creating HTML apps with HTMX and ASGI.

www.fastht.ml

As a side note. Interesting that they chose to use package name "python-fasthtml" and not "fasthtml" (which is still available on PyPI).

#python #htmx #FastHTML

16.01.2025 09:41 👍 2 🔁 0 💬 0 📌 0
Post image

Spicy food leads to road fatalities! /s

Few other interesting ones at www.tylervigen.com/spurious-cor...

Image source: @cremieuxrecueil (X)

#datascience #datascientist #science #data #graphs #causation #correlation

08.01.2025 11:25 👍 0 🔁 0 💬 0 📌 0
Post image

Created a small python package for making monotonically increasing smoothing B-spines: github.com/fohrloop/pen...

#python #datascience #bsplines

07.01.2025 11:56 👍 0 🔁 0 💬 0 📌 0

Well said. The problem that data is not normalized ("per person" or otherwise) is actually pretty common.

06.01.2025 13:58 👍 1 🔁 0 💬 1 📌 0
Post image

Panel Graphic Walker

A new way for creating Tableau like data exploration interfaces with #python and just a few lines of code!

It's a basically a Panel (Holoviz) widget which brings the JS project graphic-walker into python.

github.com/panel-extens...

#datascience #dataanalysis #eda

03.01.2025 16:37 👍 3 🔁 0 💬 0 📌 0
Post image

Filtering data with few peaks, like a spectrum? Weighted Whittaker Smoother seems like a good alternative:

- Filters noise out effectively
- Can be adjusted on peak wavelengths to filter less
- Quite simple

eigenvector.com/wp-content/u...

#datascience #filtering #datafiltering

03.01.2025 12:26 👍 0 🔁 0 💬 0 📌 0
The Continuity of Splines
The Continuity of Splines YouTube video by Freya Holmér

Just watched an astonishing video explaining splines both visually and at some level mathematically. The video covers Bezier curves, Hermite Splines, Catmull-Rom Spline, Linear Spline and B-Spline. No wonder it has 1.5M views!

www.youtube.com/watch?v=jvPP...

#math #splines #scientist #datascience

02.01.2025 19:00 👍 0 🔁 0 💬 0 📌 0

For Maths fans, 2025 is a square.
45² = 45 x 45 = 2025
Also,
9² x 5² = 2025
40² + 20² + 5² = 2025
My favourite?
1³+2³+3³+4³+5³+6³+7³+8³+9³ = 2025
#Mathematics #teaching #education

01.01.2025 13:56 👍 24960 🔁 4719 💬 920 📌 460

.. and I can't be *that guy* at home. Otherwise my peaceful moment at night with just me and my computer might be at danger. 😂

24.12.2024 17:51 👍 1 🔁 0 💬 1 📌 0

Awesome! I have the glove80 with Kailh Brown v1's and I'm just optimizing the layout for it. The Shhhocks are something that I definitely should buy! Did you try the keycap tilters with the glove80 thumbs?

#keyboards #ergomechkeyboard

24.12.2024 17:49 👍 0 🔁 0 💬 1 📌 0

variable names *are* code comments

22.12.2024 20:22 👍 2980 🔁 184 💬 140 📌 32
Post image

What might be surprising, sometimes the unary addition does something, though (if the object implements __pos__(self))

#python

19.12.2024 11:52 👍 0 🔁 0 💬 0 📌 0
Post image

The slides for my lectures on (Bayesian) Active Learning, Information Theory, and Uncertainty are online now 🥳 They cover quite a bit from basic information theory to some recent papers:

blackhc.github.io/balitu/

and I'll try to add proper course notes over time 🤗

17.12.2024 06:50 👍 177 🔁 28 💬 3 📌 0
Video thumbnail

matplotlib tip: It's possible to move back and forward zoom levels in the GUI with left and right arrow keys (and C and V for left hand use).

That makes looking around data much faster (no need to hit the home button and start over)

#python #datascience #matplotlib #plots

16.12.2024 15:50 👍 1 🔁 0 💬 0 📌 0

Monte Carlo methods use random sampling to solve tough problems (optimization, integration, ...)

@13:55 When your simulations are expensive, you want to be clever about sampling (Quasi Monte Carlo) -> less samples, same info

@32:00 cleverness of different sampling methods compared

#datascience

15.12.2024 04:16 👍 9 🔁 2 💬 0 📌 0

You're absolutely right! The example is perhaps too simple, and many simpler cases should be handled with a @pytest.fixture instead.

14.12.2024 11:59 👍 0 🔁 0 💬 0 📌 0

Looks like a library that could be useful when writing unit tests!

It's for creating and updating inline snapshots in tests.

#python #pytest #pythontesting #unittests

14.12.2024 10:36 👍 0 🔁 0 💬 1 📌 0
Preview
Misleading "Downloads by Python version over time" is only showing a subset of used versions · Issue #105 · ClickHouse/clickpy Describe the bug The "Downloads by Python version over time" is only showing a subset of versions which is confusing. To Reproduce Steps to reproduce the behavior: Look at the scikit-learn dashboar...

Also just discovered that the download stats by python version has a bug: github.com/ClickHouse/c..., so for accurate information about it I would still use pypistats.org - But the full history is a killer feature. Compare to 6 months of pypistats or 3 months of (the free) pepy.tech.

14.12.2024 09:02 👍 1 🔁 0 💬 0 📌 0
Screenshot from the ClickPy showing two time series graphs of download statistics.

Screenshot from the ClickPy showing two time series graphs of download statistics.

Just learned about ClickPy: an alternative to pypistats.org & pepy.tech — #python package download stats 🐍📊

Highlights:
- 📊 FULL history of the package
- 🔍 Filter by time range and see widgets updating (YES!😍)
- ⭐ GitHub star history
- 📦 Dependents

Example:
clickpy.clickhouse.com/dashboard/wa...

14.12.2024 08:47 👍 1 🔁 0 💬 1 📌 0
Post image

Today I learned about PSQL for DuckDB. It looks like SQL, but with none of the nested bits.

https://buff.ly/3ZV3p8I

14.12.2024 08:00 👍 16 🔁 1 💬 0 📌 0

Black is awesome, but nowadays I'm using ruff's formatter as it's faster and does the same thing. It can also replace isort, which is convenient.

#python #ruff #pythonruff

13.12.2024 21:52 👍 10 🔁 0 💬 1 📌 0

This would be perfect!

13.12.2024 15:25 👍 0 🔁 0 💬 0 📌 0

Nice visualization for telling the story! I love the one Asian country swimming out of the picture with more than 2.5 cell phone subscriptions per person.

13.12.2024 12:23 👍 1 🔁 0 💬 1 📌 0

Something seems to be off for sure 😄 The free-threading python is still in experimental phase though.

13.12.2024 10:47 👍 1 🔁 0 💬 1 📌 0