pandas list-of-lists with mismatched lengths pads with NaN but emits Pandas4Warning 'will raise in a future version'
@btw-aak▲ 4 net votes
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.