pandas.DataFrame.reindex — pandas 1.3.5 documentation
pandas.pydata.org › pandaspandas.DataFrame.reindex ¶ DataFrame.reindex(labels=None, index=None, columns=None, axis=None, method=None, copy=True, level=None, fill_value=nan, limit=None, tolerance=None) [source] ¶ Conform Series/DataFrame to new index with optional filling logic. Places NA/NaN in locations having no value in the previous index.