{"schemaVersion":"1.0","record":{"label":"pandas","description":"Python library for labeled tabular data, joins, reshaping, time-series analysis and file/database interchange.","aliases":[],"kind":"software","website":"https://pandas.pydata.org/","overview":"pandas is a Python data-analysis library centered on labeled Series and DataFrame objects. It combines table transformation, joins, grouping, time-series operations and data interchange, with automatic alignment by labels forming an important part of its behavior.","license":"Open source under the BSD 3-Clause license.","lifecycle":"active","example":false,"features":[{"name":"Labeled data transformation","status":"supported","detail":"Provides label alignment, joins, grouping, reshaping and time-series operations.","useCase":"In-memory tabular transformation and exploratory analysis in Python","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandas.pydata.org/about/","locator":"Library highlights and data interchange","retrievedAt":"2026-10-07T17:05:05Z","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/getting_started/overview.html","locator":"Series, DataFrame and BSD 3-Clause license","retrievedAt":"2026-10-07T17:05:37Z","kind":"vendor"}]},{"name":"Larger-than-memory analysis","status":"limited","detail":"Chunking helps separable workloads, but pandas is primarily in-memory and intermediates require additional capacity.","useCase":"In-memory tabular transformation and exploratory analysis in Python","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandas.pydata.org/docs/user_guide/scale.html","locator":"In-memory limits, column selection, dtypes and chunking","retrievedAt":"2026-10-07T17:05:05Z","kind":"vendor"}]},{"name":"Legacy mutation compatibility","status":"limited","detail":"Pandas 3.0 copy-on-write prevents chained assignment from updating its parent.","useCase":"In-memory tabular transformation and exploratory analysis in Python","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandas.pydata.org/docs/user_guide/copy_on_write.html","locator":"Pandas 3.0 mode, chained assignment and shared arrays","retrievedAt":"2026-10-07T17:06:14Z","kind":"vendor"}]}],"alternatives":[],"slug":"pandas","draftAlternatives":[{"targetSlug":"polars","status":"limited","detail":"Can replace Polars for in-memory table transformation where pandas label/index semantics fit. Lazy expressions require rewriting; scaling and syntax are not equivalent.","useCase":"In-memory tabular transformation and exploratory analysis in Python","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandas.pydata.org/about/","locator":"Library highlights and data interchange","retrievedAt":"2026-10-07T17:05:05Z","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/user_guide/scale.html","locator":"In-memory limits, column selection, dtypes and chunking","retrievedAt":"2026-10-07T17:05:05Z","kind":"vendor"},{"url":"https://docs.pola.rs/user-guide/migration/pandas/","locator":"Index and execution-model differences","retrievedAt":"2026-10-07T17:06:14Z","kind":"vendor"}]}],"evidence":[{"url":"https://pandas.pydata.org/about/","locator":"Library highlights and data interchange","retrievedAt":"2026-10-07T17:05:05Z","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/getting_started/overview.html","locator":"Series, DataFrame and BSD 3-Clause license","retrievedAt":"2026-10-07T17:05:37Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://pandas.pydata.org/about/","locator":"Library highlights and data interchange","retrievedAt":"2026-10-07T17:05:05Z","id":"about","title":"About pandas","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/getting_started/overview.html","locator":"Series, DataFrame and BSD 3-Clause license","retrievedAt":"2026-10-07T17:05:37Z","id":"overview","title":"pandas package overview","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/user_guide/copy_on_write.html","locator":"Pandas 3.0 mode, chained assignment and shared arrays","retrievedAt":"2026-10-07T17:06:14Z","id":"cow","title":"Copy-on-Write","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/user_guide/migration-3-strings.html","locator":"3.0 inferred str dtype, NaN, PyArrow and assignment constraints","retrievedAt":"2026-10-07T17:05:05Z","id":"strings","title":"New string dtype migration","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/user_guide/scale.html","locator":"In-memory limits, column selection, dtypes and chunking","retrievedAt":"2026-10-07T17:05:05Z","id":"scale","title":"Scaling to large datasets","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/reference/api/pandas.read_pickle.html","locator":"Trust warning and bounded backward compatibility","retrievedAt":"2026-10-07T17:05:37Z","id":"pickle","title":"read_pickle","kind":"vendor"},{"url":"https://pandas.pydata.org/docs/getting_started/install.html","locator":"Package environments and optional dependency groups","retrievedAt":"2026-10-07T17:05:20Z","id":"install","title":"Installation","kind":"vendor"},{"url":"https://docs.pola.rs/user-guide/migration/pandas/","locator":"Index and execution-model differences","retrievedAt":"2026-10-07T17:06:14Z","id":"polars","title":"Polars pandas migration","kind":"vendor"}],"overviewCitations":["about","overview"],"licenseCitations":["overview"],"sections":[{"id":"tables","heading":"Tables and labels","paragraphs":[{"id":"tables-detail","content":[{"text":"Series represents a labeled one-dimensional array, while DataFrame represents a two-dimensional table whose columns can have different types. pandas supports reshaping, hierarchical indexes, grouping and joins, as well as date ranges, resampling and window calculations. Automatic label alignment is useful for matching observations, but also means that indexes are part of the computation rather than merely decorative row numbers."}],"citations":["overview","about"]}]},{"id":"mutation","heading":"Copy-on-write migration","paragraphs":[{"id":"mutation-detail","content":[{"text":"Copy-on-write is the only mode in pandas 3.0. Changing an object derived from another no longer implicitly changes both, and chained assignment cannot update the parent table. Code intending to change selected parent values needs an appropriate single assignment, such as through loc. NumPy arrays sharing the underlying data may be read-only, so code relying on writable views also needs review."}],"citations":["cow"]}]},{"id":"text","heading":"String and missing-value behavior","paragraphs":[{"id":"text-detail","content":[{"text":"Pandas 3.0 infers a dedicated str dtype for string data instead of the former general object dtype. It uses NaN for missing values and PyArrow storage when available, with a fallback otherwise. This dtype accepts strings rather than arbitrary Python objects. Existing checks for object dtype and assignments mixing unrelated value types can therefore behave differently after an upgrade."}],"citations":["strings"]}]},{"id":"capacity","heading":"Memory and scale","paragraphs":[{"id":"capacity-detail","content":[{"text":"The library is designed primarily for in-memory analysis. Reading fewer columns and using appropriate categorical or narrower numeric types can reduce memory requirements, while intermediate results may still consume substantial space. Chunked reads help when chunks need little coordination. Complex operations spanning chunks require additional design or another execution system; a file fitting on disk does not establish that its full analysis fits in RAM."}],"citations":["scale"]}]},{"id":"interchange","heading":"Interchange and persistence","paragraphs":[{"id":"interchange-detail","content":[{"text":"pandas reads and writes common table formats and works with SQL sources. Optional dependencies vary by format and feature. Its pickle reader warns against untrusted artifacts and limits its documented backward-compatibility guarantee to objects produced with to_pickle from pandas 1.0 onward. A saved Python object should not be treated as an unrestricted cross-language exchange format or safe content merely because it contains a table."}],"citations":["about","install","pickle"]}]},{"id":"substitution","heading":"Licensing and substitution","paragraphs":[{"id":"substitution-detail","content":[{"text":"pandas is BSD 3-Clause licensed. It can substitute for "},{"text":"Polars","targetSlug":"polars"},{"text":" where data fits the memory budget and labeled indexes or pandas-oriented integrations fit the workflow. Polars expressions and lazy execution plans need rewriting. Verify alignment, data types and missing-value behavior during migration; shared table operations do not guarantee identical semantics or performance."}],"citations":["overview","polars","scale"]}]}]},"id":"Q354","revision":340,"updatedAt":"2026-10-11T20:13:38Z","sourceUrl":"https://substitutefor.net/entities/Q354?revision=340"}}