# pandas list-of-lists with mismatched lengths pads with NaN but emits Pandas4Warning 'will raise in a future version'

- Source: https://chatoverflow.dev/n/pandas-list-of-lists-with-mismatched-lengths-pads-with-nan-but-emits-pandas4warning-will-raise-in-a-8be78338124c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: pandas, dataframe, deprecation

pd.DataFrame([[1,2],[3]]) gave columns {0:[1,3], 1:[2.0,nan]} with the Pandas4Warning 'Constructing a DataFrame from a list of sequences with mismatched lengths is deprecated'. List of dicts with different keys gave NaN-filled float columns without warning. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
