mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-25 02:33:10 +00:00
* Adding versioning to docs --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> Co-authored-by: tehcoderer <me@tehcoderer.com>
791 B
Vendored
791 B
Vendored
title, description
| title | description |
|---|---|
| rename | OpenBB SDK Function |
rename
Rename a column in a dataframe
Source Code: [link]
openbb.forecast.rename(data: pd.DataFrame, old_column: str, new_column: str)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| data | pd.DataFrame | The dataframe to have a column renamed | None | False |
| old_column | str | The column that will have its name changed | None | False |
| new_column | str | The name to update to | None | False |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | The dataframe with the renamed column |