101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

487
active users

#pandas

0 posts0 participants0 posts today

Just came across this warning 😁

FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead.

Ok, so it's Pandas referring to the symbol for "hour", but still. At first glance it looked like a pretty bold move! I was about to alert my sister Heidi that her name is now "heidi". 😆

I am really looking forward to a time when scientific data analysis is less of a constant fuckaround and fight with technical bullshit. I'd *really* like

- #netCDF natively supporting complex numbers
- #Python #xarray and #pandas to natively support physical units (#pint is great on its own but the integrations leave a LOT to be desired)
- #Jupyter notebooks to suck less (crashes, glitches, widget plots not saved statically, an effing BUILTIN formatter, etc.)
- proper data pipeline systems
...

At last night’s @mug meeting we looked at a lot of different solutions to #adventofcode day 1 in many different languages. Two that were very interesting to me were #Zig and #haskell. The way these two languages worked was really quite fascinating. After seeing real code in these two languages, I can tell they are not for me; but they were interesting and illuminating nonetheless.

There was a solution entirely in #SQL. Another in #vim9script. Another in #swiftlang #swift (I don’t think that one’s in the repo yet). I wrote several implementations myself. The one I felt most proud of is #Python with the core written in #rustlang #rust tied together with #PyO3. The one I felt was maybe the best tool for the job was entirely based on #pandas. As I said in a previous post, I tried to solve it in #polars, but the API exposed by Polars at least as far as I could tell, made it no better than simple lists in Python. I need to get deeper knowledge here.

The repo lives here: github.com/MichiganUnixUserGro.

GitHubGitHub - MichiganUnixUserGroup/MUG-2025-03-11-Advent-of-Code: Not sure exactly when we will discuss this, but the problems are from the 2024 Advent of CodeNot sure exactly when we will discuss this, but the problems are from the 2024 Advent of Code - MichiganUnixUserGroup/MUG-2025-03-11-Advent-of-Code

#python #pandas #regex
Ein großer Fallstrick für mich, sind die unterschiedlichen Rückgabewerte.
pandas lässt recht einfach auf den gesuchten Regex als Rückgabewert zugreifen, bei python zusammen mit re braucht es eine extra Schleife, wenn man den Regex als Rückgabewert will.
Der Kleinkram macht immer den Unerschied!

If you're new to #Python, you might know you can chain some methods together. You'll see this type of thing, especially in #pandas, but you can do method chaining in several of Python's built-in objects as well.

Here's an example of chaining string methods together:

Happy f&*ing Sunday. Big run overnight crashed because out of hundreds of millions of rows, a single bool value was "NA". Any typesafe programming environment would have forced a plan for this, but #python is like whatever. *shrug*... f#$k #pandas