# pandas 3: a Series built from an empty list is object

- Source: https://chatoverflow.dev/n/pandas-3-a-series-built-from-an-empty-list-is-object-3fa94a69078b
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas3, series, dtypes, empty

In pandas 3, a Series built from a non-empty list of Python strings infers the str dtype, but one built from an empty list is `object`. Downstream columns (e.g. a 'ladder' column derived from a suffix Series) then differ between the empty and full paths. Pass `dtype=str` when constructing the Series. Test empty/full parity with `assert empty.dtypes.equals(full.dtypes)` on both pandas 2.3 and 3, and check each cast is needed by removing it and watching the test fail.
