What's new in pandas 3
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Jan 25, 2026
pandas 3.0 has just been released. This article uses a real‑world example to explain the most important differences between pandas 2 and the new pandas 3 release, focusing on performance, syntax, and user experience. A note on pandas versioning Before diving into the technical details of pandas 3 …
Read more
pandas 3.0 released!
Source: pandas blog | Author: pandas team | Published: Jan 21, 2026
We're excited to announce the release of pandas 3.0.0. This major long-awaited release brings significant improvements to pandas, but also features some potentially breaking changes. Highlights of pandas 3.0 pandas 3.0 introduces several major
Read more
pandas 3.0.0 release candidate ready for testing!
Source: pandas blog | Author: pandas team | Published: Dec 12, 2025
We're excited to announce the release candidate for pandas 3.0. This major release brings significant improvements to pandas, but also features some potentially breaking changes. To ensure a smooth pandas 3.0 release, we
Read more
How fast can we process a CSV file
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Feb 22, 2024
Introduction Comma-separated values (CSV) are an extremely popular format to store tabular data because of their simplicity and how easy is to write them. The file can be directly read by a human, as opposed to more efficient binary formats like parquet, for example: name,age Maryam,23 Mèng yáo …
Read more
What's new in pandas 2.2
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Jan 25, 2024
The most interesting things about the new release pandas 2.2 was released on January 22nd 2024. Let’s take a look at the things this release introduces and how it will help us to improve our pandas workloads. It includes a bunch of improvements that will improve the user …
Read more
Deep dive into pandas Copy-on-Write mode - part III
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Sep 28, 2023
Explaining the migration path for Copy-on-Write Introduction The introduction of Copy-on-Write (CoW) is a breaking change that will have some impact on existing pandas-code. We will investigate how we can adapt our code to avoid errors when CoW will be enabled by default. This is currently planned for the pandas …
Read more
What's new in pandas 2.1
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Sep 06, 2023
The most interesting things about the new release pandas 2.1 was released on August 30th 2023. Let’s take a look at the things this release introduces and how it will help us improving our pandas workloads. It includes a bunch of improvements and also a set of new …
Read more
Deep Dive into pandas Copy-on-Write Mode - Part II
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Aug 16, 2023
Explaining how Copy-on-Write optimizes performance Introduction The first post explained how the Copy-on-Write mechanism works. It highlights some ares where copies are introduced into the workflow. This post will focus on optimizations that ensure that this won't slow the average workflow down. We utilize a technique that pandas internals use …
Read more
Deep Dive into pandas Copy-on-Write Mode - Part I
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Aug 08, 2023
Explaining how Copy-on-Write works internally Introduction pandas 2.0 was released in early April and brought many improvements to the new Copy-on-Write (CoW) mode. The feature is expected to become the default in pandas 3.0, which is scheduled for April 2024 at the moment. There are no plans for …
Read more
pandas Internals Explained
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Jul 20, 2023
Explaining the pandas data model and its advantages Introduction pandas enables you to choose between different types of arrays to represent the data of your DataFrame. Historically, most DataFrames are backed by NumPy arrays. pandas 2.0 introduced the option to use PyArrow arrays as a storage format. There exists …
Read more
Dask performance benchmarking put to the test: Fixing a pandas bottleneck
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Jun 27, 2023
Getting notified of a significant performance regression the day before release sucks, but quickly identifying and resolving it feels great! We were getting set up at our booth at JupyterCon 2023 when we received a notification: An engineer on our team had spotted a significant performance regression in Dask. With …
Read more
Benchmarking pandas against Polars from a pandas PoV
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Jun 14, 2023
Or: How writing efficient pandas code matters Introduction I've regularly seen benchmarks that show how much faster Polars is compared to pandas. The fact that Polars is faster than pandas is not too surprising since it is multithreaded while pandas is mostly single-core. The big difference surprises me though. That's …
Read more
Utilizing PyArrow to improve pandas and Dask workflows
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Jun 04, 2023
Get the most out of PyArrow support in pandas and Dask right now Introduction This post investigates where we can use PyArrow to improve our pandas and Dask workflows right now. General support for PyArrow dtypes was added with pandas 2.0 to pandas and Dask. This solves a bunch …
Read more
Welcoming pandas 2.0
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Mar 22, 2023
How the API is changing and how to leverage new functionalities Introduction After 3 years of development, the second pandas 2.0 release candidate was released on the 16th of March. There are many new features in pandas 2.0, including improved extension array support, pyarrow support for DataFrames and …
Read more
pandas 2.0 and the Arrow revolution (part I)
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Feb 17, 2023
Introduction At the time of writing this post, we are in the process of releasing pandas 2.0. The project has a large number of users, and it's used in production quite widely by personal and corporate users. This large use based forces us to be conservative and make us …
Read more
A guide to efficient data selection in pandas
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Feb 09, 2023
Improve performance when selecting data from a pandas object Introduction There exist different ways of selecting a subset of data from a pandas object. Depending on the specific operation, the result will either be a view pointing to the original data or a copy of the original data. This ties …
Read more
A solution for inconsistencies in indexing operations in pandas
Source: Patrick Hoefler - pandas | Author: Patrick Hoefler | Published: Dec 22, 2022
Get rid of annoying SettingWithCopyWarning messages Introduction Indexing operations in pandas are quite flexible and thus, have many cases that can behave quite different and therefore produce unexpected results. Additionally, it is hard to predict when a SettingWithCopyWarningis raised and what this means exactly. I’ll show a couple of …
Read more
pandas with hundreds of millions of rows
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Sep 21, 2022
The problem We want to find out which are the top #5 American airports with the largest average (mean) delay on domestic flights. Data We will be using the Data Expo 2009: Airline on time data dataset from the Harvard Dataverse. The data consists of flight arrival and departure details …
Read more
On copies and views: getting rid of the SettingWithCopyWarning
Source: Joris Van den Bossche - pandas | Author: Joris Van den Bossche | Published: Apr 07, 2022
Pandas' current behavior on whether indexing returns a view or copy is confusing, even for experienced users. But it doesn’t have to be this way. We can make this aspect of pandas easier to grasp by simplifying the copy/view rules, and at the same time make pandas more memory-efficient. And get rid of the SettingWithCopyWarning.
Read more
Write up of the NumFOCUS grant to improve pandas benchmarks and diversity
Source: pandas blog | Author: pandas team | Published: Apr 01, 2022
By Lucy Jiménez and Dorothy Kabarozi B. We want to share our experience working on Improvements to the ASV benchmarking framework and diversity efforts sponsored by NumFOCUS to the pandas project. This grant focused on
Read more
Maintaining Performance
Source: Pandas on Tom's Blog | Published: Apr 01, 2020
As pandas’ documentation claims: pandas provides high-performance data structures. But how do we verify that the claim is correct? And how do we ensure that it stays correct over many releases. This post describes pandas’ current setup for monitoring performance My personal debugging strategy for understanding and fixing performance regressions when they occur. I hope that the first section topic is useful for library maintainers and the second topic is generally useful for people writing performance-sensitive code.
Read more
pandas 1.0
Source: pandas blog | Author: pandas team | Published: Jan 29, 2020
Today pandas celebrates its 1.0.0 release. In many ways this is just a normal release with a host of new features, performance improvements, and bug fixes, which are documented in
Read more
Towards consistent missing value handling in Pandas
Source: Joris Van den Bossche - pandas | Author: Joris Van den Bossche | Published: Nov 30, 2019
This blogpost gives some background and motivation for my proposal on better missing value support in pandas, and the changes that have been merged in the development version (to be released in pandas 1.0): a new pd.NA scalar is introduced that can be used consistently across all data types..
Read more
An update on the pandas documentation
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Nov 28, 2019
Some context This post is mainly a technical post on what's the status of the pandas documentation. But let me provide a bit of context on where this comes from. It's a personal opinion, but I think pandas is one of the clearest examples of how open source is transforming …
Read more
New pandas workflow
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Nov 17, 2019
Some exciting news. After some years of organizing sprints, and maintaining open source, I've been thinking on a more efficient workflow for projects with high volume of activity, like pandas. An exaggerated example would be that I want to create 1,600 issues in pandas. One for each docstring of …
Read more
2019 NumFOCUS Awards and New Contributor Recognition
Source: pandas Archives - NumFOCUS | Author: Admin | Published: Nov 15, 2019
The post 2019 NumFOCUS Awards and New Contributor Recognition appeared first on NumFOCUS.
Read more
Chan Zuckerberg Initiative Funds Maintenance of NumFOCUS Projects
Source: pandas Archives - NumFOCUS | Author: Admin | Published: Nov 14, 2019
The post Chan Zuckerberg Initiative Funds Maintenance of NumFOCUS Projects appeared first on NumFOCUS.
Read more
Highlights From The 2019 Pandas Hack
Source: pandas Archives - NumFOCUS | Author: nf-admin | Published: Sep 13, 2019
The post Highlights From The 2019 Pandas Hack appeared first on NumFOCUS.
Read more
Dataframe summit @ EuroSciPy write up
Source: datapythonista blog - pandas | Author: Marc Garcia | Published: Sep 10, 2019
Last week took place in Bilbao, Spain, EuroSciPy 2019. This year we introduced the maintainers track a room dedicated to discussions among maintainers. The idea is similar to the birds of a feather or unconference sessions of other conferences. But focussed on open source maintainers and contributors. And we scheduled …
Read more
2019 pandas user survey
Source: pandas blog | Author: pandas team | Published: Aug 22, 2019
Pandas recently conducted a user survey to help guide future development. Thanks to everyone who participated! This post presents the high-level results. This analysis and the raw data can be found on
Read more
GeoPandas now uses the pandas ExtensionArray interface
Source: Joris Van den Bossche - pandas | Author: Joris Van den Bossche | Published: Aug 13, 2019
Short summary: the upcoming 0.6.0 release of GeoPandas will feature a refactor based on the pandas ExtensionArray interface. Although this change should keep the user interface mostly stable, it enables more robust integration with pandas and allows for more upcoming changes in the future. And given the invasive code changes under the hood, testing is very welcome!
Read more
pandas: The two cultures
Source: datapythonista blog - pandas | Author: Marc | Published: Jul 22, 2019
Leo Breiman was a distinguished statistician at UC Berkeley, known among other things for his major contributions to CART (decision trees), and ensemble techniques, mainly bootstrap aggregation. Combining both, he was able to define one of the most popular machine learning models even today (18 years after the publication of …
Read more
pandas + binder
Source: Pandas on Tom's Blog | Published: Jul 21, 2019
This post describes the start of a journey to get pandas’ documentation running on Binder. The end result is this nice button: For a while now I’ve been jealous of Dask’s examples repository. That’s a repository containing a collection of Jupyter notebooks demonstrating Dask in action. It stitches together some tools to present a set of documentation that is both viewable as a static site at examples.dask.org, and as a executable notebooks on mybinder.
Read more
pandas extension arrays
Source: pandas blog | Author: pandas team | Published: Jan 04, 2019
Extensibility was a major theme in pandas development over the last couple of releases. This post introduces the pandas extension array interface: the motivation behind it and how it might affect you
Read more
Inaugural NumFOCUS Awards and New Contributor Recognition
Source: pandas Archives - NumFOCUS | Author: Admin | Published: Sep 27, 2018
The post Inaugural NumFOCUS Awards and New Contributor Recognition appeared first on NumFOCUS.
Read more
Moral Philosophy for pandas or: What is `.values`?
Source: Pandas on Tom's Blog | Published: Aug 14, 2018
The other day, I put up a Twitter poll asking a simple question: What’s the type of series.values? Pop Quiz! What are the possible results for the following:>>> type(pandas.Series.values)— Tom Augspurger (@TomAugspurger) August 6, 2018 I was a bit limited for space, so I’ll expand on the options here. Choose as many as you want. NumPy ndarray pandas Categorical (or all of the above) An Index or any of it’s subclasses (DatetimeIndex, CategoricalIndex, RangeIndex, etc.) (or all of the above) None or all of the above I was prompted to write this post because a.) this is an (unfortunately) confusing topic and b.) it’s undergoing a lot of change right now (and, c.) I had this awesome title in my head).
Read more
Modern Pandas (Part 8): Scaling
Source: Pandas on Tom's Blog | Published: Apr 23, 2018
This is part 1 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling As I sit down to write this, the third-most popular pandas question on StackOverflow covers how to use pandas for large datasets. This is in tension with the fact that a pandas DataFrame is an in memory container. You can’t have a DataFrame larger than your machine’s RAM. In practice, your available RAM should be several times the size of your dataset, as you or pandas will have to make intermediate copies as part of the analysis.
Read more
The Worldwide Pandas Documentation Sprint: A Closer Look
Source: pandas Archives - NumFOCUS | Author: Admin | Published: Mar 27, 2018
The post The Worldwide Pandas Documentation Sprint: A Closer Look appeared first on NumFOCUS.
Read more
#pandasSprint write-up
Source: datapythonista blog - pandas | Author: Marc | Published: Mar 22, 2018
The past 10th of March took place #pandasSprint. To the best of my knowledge, an unprecedented kind of event, where around 500 people worked together in improving the documentation of the popular pandas library. As one of the people involved in the organization of the event, I wanted to write …
Read more
Activity on the pandas github repo during the March 10 documentation sprint
Source: Joris Van den Bossche - pandas | Author: Joris Van den Bossche | Published: Mar 13, 2018
Last weekend, Marc Garcia and many others organised a world-wide pandas documentation sprint (https://python-sprints.github.io/pandas/). The goal was to improve the pandas API documentation, and I have to say, it was a great success!
Read more
Extension Arrays for Pandas
Source: Pandas on Tom's Blog | Published: Feb 12, 2018
This is a status update on some enhancements for pandas. The goal of the work is to store things that are sufficiently array-like in a pandas DataFrame, even if they aren’t a regular NumPy array. Pandas already does this in a few places for some blessed types (like Categorical); we’d like to open that up to anybody. A couple months ago, a client came to Anaconda with a problem: they have a bunch of IP Address data that they’d like to work with in pandas. They didn’t just want to make a NumPy array of IP addresses for a few reasons:
Read more
Modern Pandas (Part 7): Timeseries
Source: Pandas on Tom's Blog | Published: May 13, 2016
This is part 7 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Timeseries Pandas started out in the financial world, so naturally it has strong timeseries support. The first half of this post will look at pandas’ capabilities for manipulating time series data. The second half will discuss modelling time series data with statsmodels. %matplotlib inline import os import numpy as np import pandas as pd import pandas_datareader.data as web import seaborn as sns import matplotlib.pyplot as plt sns.set(style='ticks', context='talk') if int(os.environ.get("MODERN_PANDAS_EPUB", 0)): import prep # noqa Let’s grab some stock data for Goldman Sachs using the pandas-datareader package, which spun off of pandas:
Read more
Modern Pandas (Part 6): Visualization
Source: Pandas on Tom's Blog | Published: Apr 28, 2016
This is part 6 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Visualization and Exploratory Analysis A few weeks ago, the R community went through some hand-wringing about plotting packages. For outsiders (like me) the details aren’t that important, but some brief background might be useful so we can transfer the takeaways to Python. The competing systems are “base R”, which is the plotting system built into the language, and ggplot2, Hadley Wickham’s implementation of the grammar of graphics. For those interested in more details, start with
Read more
Modern Pandas (Part 5): Tidy Data
Source: Pandas on Tom's Blog | Published: Apr 22, 2016
This is part 5 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Reshaping & Tidy Data Structuring datasets to facilitate analysis (Wickham 2014) So, you’ve sat down to analyze a new dataset. What do you do first? In episode 11 of Not So Standard Deviations, Hilary and Roger discussed their typical approaches. I’m with Hilary on this one, you should make sure your data is tidy. Before you do any plots, filtering, transformations, summary statistics, regressions… Without a tidy dataset, you’ll be fighting your tools to get the result you need. With a tidy dataset, it’s relatively easy to do all of those.
Read more
Modern Panadas (Part 3): Indexes
Source: Pandas on Tom's Blog | Published: Apr 11, 2016
This is part 3 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Indexes can be a difficult concept to grasp at first. I suspect this is partly becuase they’re somewhat peculiar to pandas. These aren’t like the indexes put on relational database tables for performance optimizations. Rather, they’re more like the row_labels of an R DataFrame, but much more capable.
Read more
Modern Pandas (Part 4): Performance
Source: Pandas on Tom's Blog | Published: Apr 08, 2016
This is part 4 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Wes McKinney, the creator of pandas, is kind of obsessed with performance. From micro-optimizations for element access, to embedding a fast hash table inside pandas, we all benefit from his and others’ hard work. This post will focus mainly on making efficient use of pandas and NumPy.
Read more
Modern Pandas (Part 2): Method Chaining
Source: Pandas on Tom's Blog | Published: Apr 04, 2016
This is part 2 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Method Chaining Method chaining, where you call methods on an object one after another, is in vogue at the moment. It’s always been a style of programming that’s been possible with pandas, and over the past several releases, we’ve added methods that enable even more chaining.
Read more
Modern Pandas (Part 1)
Source: Pandas on Tom's Blog | Published: Mar 21, 2016
This is part 1 in my series on writing modern idiomatic pandas. Modern Pandas Method Chaining Indexes Fast Pandas Tidy Data Visualization Time Series Scaling Effective Pandas Introduction This series is about how to make effective use of pandas, a data analysis library for the Python programming language. It’s targeted at an intermediate level: people who have some experience with pandas, but are looking to improve. Prior Art There are many great resources for learning pandas; this is not one of them. For beginners, I typically recommend Greg Reda’s 3-part introduction, especially if they’re familiar with SQL. Of course, there’s the pandas documentation itself. I gave a talk at PyData Seattle targeted as an introduction if you prefer video form. Wes McKinney’s Python for Data Analysis is still the goto book (and is also a really good introduction to NumPy as well). Jake VanderPlas’s Python Data Science Handbook, in early release, is great too. Kevin Markham has a video series for beginners learning pandas.
Read more
NumFOCUS Announces New Fiscally Sponsored Project: pandas
Source: pandas Archives - NumFOCUS | Author: nf-admin | Published: Oct 09, 2015
by Gina Helfrich NumFOCUS is pleased to announce pandas as our newest fiscally sponsored project. pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language. pandas enables users to carry out their entire data analysis workflow in Python without having to switch to a more domain-specific language like […] The post NumFOCUS Announces New Fiscally Sponsored Project: pandas appeared first on NumFOCUS.
Read more
dplyr and pandas
Source: Pandas on Tom's Blog | Published: Oct 16, 2014
This notebook compares pandas and dplyr. The comparison is just on syntax (verbage), not performance. Whether you’re an R user looking to switch to pandas (or the other way around), I hope this guide will help ease the transition. We’ll work through the introductory dplyr vignette to analyze some flight data. I’m working on a better layout to show the two packages side by side. But for now I’m just putting the dplyr code in a comment above each python call.
Read more