lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

55
active users

#pandas

1 post1 participant0 posts today

Last week's US jobs report significantly reduced the estimates from previous months, leading to the firing of the head statistician.

In the latest Bamboo Weekly, we examine the government's data, calculating these changes ourselves. Were these the biggest-ever downward revisions?

Improve your #Python #Pandas skills every Wednesday with new, real-world data-analysis problems: BambooWeekly.com

The #pandas "read_csv" method is so silly, if you read a csv header with "example1, example2, example3" it will create the keys: "example1", " example2", " example3" including the leading spaces in the key names...

This always throws me for a loop when it says 'keyerror example1' and I go to print the keys and ITS RIGHT THERE!

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". 😆

Anybody using the narwhals #python package for #dataframe manipulations?

Very comfortable with #pandas and #polars syntax, but although #narwhals is supposed to be very close to polars, it is a subset and I find that there is a lot of basic stuff missing. Trying to figure out how to get the first part of a str.split.

in pandas I just add .str[0] and in polars .list.get(0)

with narwhals neither approaches are implemented. Any idea as what is supported in narwhals to do this?
#programming

I don't get #Python package dependencies. I have two #conda envs with exactly python versions, packages all from #pip with major overlaps. Tried install another package in env A, after downgrading several packages including #pandas all went well. But when I try loading the newly installed package in REPL cmd, an error occurred complaining about pandas version. I removed the package, deactivate env A and activate env B, install same package in env B, same downgrade happened with pandas while this time all packages loaded without any issue. And this is not the first time I see this. Before this I use conda/mamba to manage packages and I switched to pip for package management hoping this won't happen anymore.

@pythonhub
@pandas_dev
#pandas

Hello, I am looking for a way to identify a commune/city from a geolocation point (lat. - long.)

Does a library exist?

How to do that?

This request is not to find a commune/city from an address.

For instance, my search is from points in the middle of fields and in a forest...
And when I don't have an address :).

Thank you for your time.

----

Je cherche un moyen de retourner le nom d'une commune à partir de la géolocalisation d'in point.

Merci.

#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!