[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.DataFrame.reindex.html [Back]  [Original]

bigframes.pandas.DataFrame.reindex — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.DataFrame.reindex#

DataFrame.reindex(labels=None, *, index=None, columns=None, axis: str | int | None = None, validate: bool | None = None)[source]#

Conform DataFrame to new index with optional filling logic.

Places NA in locations having no value in the previous index. A new object is produced.

Parameters:
  • labels (array-like, optional) New labels / index to conform the axis specified by axis to.

  • index (array-like, optional) New labels for the index. Preferably an Index object to avoid duplicating data.

  • columns (array-like, optional) New labels for the columns. Preferably an Index object to avoid duplicating data.

  • axis (int or str, optional) Axis to target. Can be either the axis name (index, columns) or number (0, 1).

Returns:

DataFrame with changed index.

Return type:

bigframes.pandas.DataFrame


Web Proxy Viewer  |  New URL  |  Original Page