Our great sponsors
-
dictf
An extended Python dict implementation that supports multiple key selection with a pretty syntax.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Pandas
Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
Hi, everyone! I'm not sure if this is useful to anyone because it's a problem you can easily solve with a dict comprehension, but I love a pretty syntax, so I made this: https://github.com/Eric-Mendes/dictf
Honestly, I think it's just an issue of documentation. For example, if there was an easier way to document @overload functions, that would help (cf. https://github.com/sphinx-doc/sphinx/issues/7787)
Speaking of pandas: groupby used to treat x and [x] the same way. Now it treats them differently, but still is forced to make the decision whether a value is scalar or iterable. Maybe in 10 years we will get another flavor of the idea ? Which one is best ? That sort of "design roaming" is quite symptomatic of that sort of API, for a good reason: there is no winning solution, it will always be broken by design: https://github.com/pandas-dev/pandas/pull/47761
Related posts
- Deploying a Serverless Dash App with AWS SAM and Lambda
- Read files from s3 using Pandas/s3fs or AWS Data Wrangler?
- Interacting with Amazon S3 using AWS Data Wrangler (awswrangler) SDK for Pandas: A Comprehensive Guide
- How to Build and Deploy a Machine Learning model using Docker
- [Python] A Journey to Python Async - 1. Intro