Pandas
Data & MLFlexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
Release History
v3.0.11 fixPandas 3.0.1 is a patch release in the 3.0.x series containing regression and bug fixes. All users of the 3.0.x series are recommended to upgrade.
v3.0.0Breaking3 featuresPandas 3.0.0 is a major release introducing a dedicated string dtype by default, consistent Copy-on-Write behavior, and initial support for the pd.col syntax. Users should migrate via version 2.3 first.
v3.0.0rc2v3.0.0rc1No release notes provided.
v3.0.0rc0This is the first release candidate (3.0.0rc0) for pandas 3.0.0, signaling readiness for the final release soon. Users are encouraged to test it and report any issues.
v2.3.31 fix1 featurePandas 2.3.3 is released, focusing on improvements and fixes for the future string data type preview feature. Users are recommended to upgrade to this version.
v2.3.21 fix1 featurePandas 2.3.2 is released, focusing on improvements and fixes for the preview future string data type ahead of pandas 3.0.
v2.3.11 fix1 featurePandas 2.3.1 is released, primarily containing improvements and fixes for the preview future string data type ahead of pandas 3.0.
v2.3.01 fix1 featurePandas 2.3.0 has been released, bringing new features, bug fixes, and performance improvements. Users are recommended to upgrade to this version.
Common Errors
NotImplementedError6 reportsThe "NotImplementedError" in pandas arises when an operation is called on an object or data type for which that specific operation hasn't been defined. To resolve this, identify the specific method or operation causing the error (e.g., `__eq__`, `__truediv__`) and either implement the missing functionality for the relevant pandas object/data type, cast the data to a compatible type before the operation, or use a different pandas function that achieves the desired result.
KeyError3 reportsKeyError in pandas arises when trying to access a column or index label that doesn't exist in the DataFrame or Series. To fix this, double-check your column/index name for typos or incorrect casing, ensuring it exactly matches what's in your data. If slicing, ensure the slice range exists within the index or column names. Consider using `df.columns` or `df.index` to verify the available labels.
ArrowNotImplementedError3 reportsArrowNotImplementedError in pandas arises when attempting operations with data types or functionalities not yet supported by the underlying pyarrow library when using `dtype="pyarrow"`. Solutions include: converting the pandas Series/DataFrame column to a compatible NumPy dtype (e.g., using `.astype("float64")` or `.astype("string")` if applicable before the operation, or avoiding `dtype="pyarrow"` where arrow functionality is incomplete. If support is expected or needed, ensure you're using the latest pyarrow version; otherwise, report the feature request to the pandas or pyarrow project.
AmbiguousTimeError1 reportThe "AmbiguousTimeError" in pandas arises when a datetime falls within a daylight saving time (DST) transition, resulting in multiple possible interpretations. Fix this by using the `ambiguous` parameter in `tz_localize()` or `Timestamp()` to specify how to handle such datetimes, for example, set `ambiguous='infer'` or provide a boolean array indicating whether each ambiguous time should be treated as DST or non-DST.
OptionError1 reportOptionError in pandas usually arises when trying to access or modify a pandas option that does not exist. To resolve this, carefully check the spelling and validity of the option name against the pandas documentation or `pd.describe_option()`. If the option is deprecated or was renamed, adjust your code to use the correct option or alternative approach.
ModuleNotFoundError1 reportThe "ModuleNotFoundError" in pandas usually means a required dependency, like `tzdata` or `typing-extensions`, isn't installed. To fix it, install the missing module using pip: `pip install <missing_module_name>`. If the error persists after installation, ensure your environment is activated and the correct version of pandas is installed.
Related Data & ML Packages
An Open Source Machine Learning Framework for Everyone
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
Tensors and Dynamic neural networks in Python with strong GPU acceleration
scikit-learn: machine learning in Python
Streamlit — A faster way to build and share data apps.
Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
Subscribe to Updates
Get notified when new versions are released