r/Python • u/sanidhya69 • Mar 29 '20
r/Python • u/phofl93 • Mar 01 '23
AMA Thread We are the developers behind pandas, currently preparing for the 2.0 release :) AMA
Hello everyone!
I'm Patrick Hoefler aka phofl and I'm one of the core team members developing and maintaining pandas (repo, docs), a popular data analysis library.
This AMA will be at least joined by
Marc Garcia -- maintainer
Marco Gorelli, -- maintainer
Richard Shadrach -- maintainer
me! -- maintainer
The official start time for the AMA will be 5:30pm UTC on March 2nd, before then this post will exist to collect questions in advance. Since most of us live all over North America and Europe, it's likely we'll answer questions before & after the official start time by a significant margin.
pandas is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python. Additionally, it has the broader goal of becoming the most powerful and flexible open source data analysis / manipulation tool available in any language.
We will soon celebrate our 2.0 release. We released the release candidate for 2.0 last week, so the actual release is expected shortly, possibly next week. Please help us in testing that everything works through testing the rc :)
Ask us anything! Post your questions and upvote the ones you think are the most important and should get our replies.
- Patrick, on behalf of the team
Marc:
I'm Marc Garcia (username datapythonista), pandas core developer since 2018, and current release manager of the project. I work on pandas part time paid by the funds the project gets from grants and sponsors. And I'm also consultant, advising data teams on how to work more efficiently. I sometimes write about pandas and technical topics at my blog, and I speak at Python and open source conferences regularly. You can connect with me via LinkedIn, Twitter and Mastodon.
Marco:
I'm Marco, one of the devs from the AMA. I work on pandas as part of my job at Quansight, and live in the UK. I'm mostly interested in time-series-related stuff
Patrick:
I'm Patrick and part of the core team of pandas. Part of my daytime job allows me to contribute to pandas, I am based in Germany. I am currently mostly working on Copy-on-Write, a new feature in pandas 2.0. (check my blog-post or our new docs for more information).
Richard:
I work as a Data Scientist at 84.51 and am a core developer of pandas. I work mostly on groupby within pandas.
--
r/Python • u/escailer • Dec 30 '21
Discussion A strongly typed dialect of Python is coming. I would like to humbly suggest a name for it.
With type hints, secondary tooling like the typing module, and really good inspectors like Pyright already available, a strongly typed dialect of python is definitely coming. Just like the JavaScript world is heavily adopting their version of the same in TypeScript, the new dialect will likely have a new name.
Here’s the issue: the name that keeps getting floated is ‘Typed Python’. Forgive me, but that name sucks and has no character. A language invented while Clinton was President by a guy with one of the 3 coolest first names you can have, and named after a sketch comedy show deserves better than this.
Thus, I would like to propose a simpler name; one that is more ‘pythonic’ if you will. If we just exchange the positions of the “P” and the “T” we evoke the same idea (in addition to making it wonderfully Google-able) and get the name:
Typhon
EDIT: I failed to mention and have since learned that Typhon and Python both come from Greek Mythology—and both were serpant giants. Typhon battled Zeus and Python battled Apollo. Python was memorialized by having a big snake named after him. Typhon still awaits his big come up (which is why I have gathered you all here today). But given the natural association between them from mythology already, I really love how smoothly this all seems to go together from different angles.
r/Python • u/jamescalam • Mar 19 '21
Match is more than a Switch-Case The New Switch-Case Statement in Python 3.10
r/Python • u/kl31 • Jul 12 '19
I wrote an integrated POS system for my girlfriend's restaurant using tkinter.
r/Python • u/hopemeetme • Nov 07 '19
Python passed Java as the second-most popular language on GitHub by repository contributors
r/Python • u/aschonfe • Oct 27 '20
Resource I recently updated my pandas dataframe GUI so you can easily embed it in your own Flask apps. Here's a quick demo I made. Code linked in comments.
r/Python • u/Last-Farmer-5716 • Aug 30 '20
Intermediate Showcase I created a library called 'handcalcs': it renders your Python calculations in Latex as though you had written them by hand.
Doing calculations in Jupyter is enjoyable but can require endless print() statements with f-strings to show your results.
With handcalcs, use the %%render cell magic and your Python calculation is rendered with the symbolic formula, followed by the numeric substitution, and then the result, just as though you had written it by hand.
Works as both a cell magic and as a decorator on your functions. For engineers, data scientists, educators, and students.

r/Python • u/[deleted] • Jun 24 '20
I Made This i made a python function that turn numbers into graphical format.
r/Python • u/nuno-faria • Sep 07 '19
Tiler - A Tool To Build Images Out Of Other Images (link in comments)
r/Python • u/keatonjones_isaloser • Aug 03 '22
Resource A free 'learning map' I found to learn Python. It puts free resources together into a skill tree for planning and tracking learning
r/Python • u/[deleted] • Feb 24 '19
Animated Dijkstra, sidewinder maze, pillow and imageio (xpost /r/proceduralgeneration
r/Python • u/appinv • Dec 15 '20
Resource The Most Complete List of Legally Free Python Books (Updated 2021)
r/Python • u/Fengax • Jul 04 '19
I created my first neural network that can recognize handwritten digits (Github link in comments)
r/Python • u/katakoria • Sep 25 '21
News Python just surpassed Java as the 2nd programming language with the highest number of questions in SO.
r/Python • u/hx-zero • Sep 13 '21
Intermediate Showcase Enable ++x and --x expressions in Python
By default, Python supports neither pre-increments (like ++x) nor post-increments (like x++), commonly used in other languages. However, the first ones are syntactically correct since Python parses them as two subsequent +x operations, where + is the unary plus operator (same with --x and the unary minus). They both have no effect, since in practice -(-x) == +(+x) == x.
I'd like to share the plusplus module that turns the ++x-like expressions into x += 1 at the bytecode level, using pure Python only.
Unlike x += 1, ++x is still an expression, so the increments work fine inside other expressions, if/while conditions, lambda functions, and list/dict comprehensions:
array[++index] = new_value
if --connection.num_users == 0:
connection.close()
button.add_click_callback(lambda: ++counter)
index = 0
indexed_cells = {++index: cell for row in table for cell in row}Note: I don't claim that allowing increments is good for real projects (it may confuse new developers and give opportunities to write less readable code), though some situations when they simplify the code do exist. I've made this module for fun, as a demonstration of Python flexibility and bytecode manipulation techniques.
The module works by replacing the bytecode patterns corresponding to the ++x and --x expressions with the bytecode for actual incrementing. For example, this is what happens for the y = ++x line:

It's not always that simple: incrementing object attributes and collection items requires much trickier bytecode manipulation (see the "How it works" section in the docs for details).
To use the module, you can just run pip install plusplus and add two lines of code enabling the increments. You may do this for just one function or for the whole package you're working on (see the "How to use it?" section).
Updates:
The same approach could be used to implement the assignment expressions for the Python versions that don't support them. For example, we could replace the
x <-- valueexpressions (two unary minuses + one comparison) with actual assignments (settingxtovalue).See also cpmoptimize - my older project about Python bytecode manipulation. It optimizes loops calculating linear recurrences, reducing their time complexity from O(n) to O(log n). The source code is available on GitHub as well.
r/Python • u/[deleted] • Mar 11 '20
I Made This Really simple simulation of virus spreading. Black dots are people, yellow dots are infected (it starts from 1). Each cell visited by an infected can infect other people passing through that for 3 iterations. After 20 iterations a person is infected is deleted from the grid.
r/Python • u/aaronpenne • Nov 04 '19
I'm a generative artist and currently obsessed with domain warping
r/Python • u/[deleted] • Feb 17 '19
Just noticed that the code in "Ralph Breaks the Internet" is in python
r/Python • u/dhaitz • Apr 04 '20