mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
* Update generate_terminal_markdown.py * updates * update workflows * Automated Change * tests * tests * Automated Change * Update test_generate_docs.py * Automated Change * updates * Automated Change * Update gen-docs.yml * Update test.yml * Automated Change * Update test.yml * Automated Change * Update generate_sdk_markdown.py * Automated Change * test * Automated Change * testtt23 * Automated Change * Update generate_sdk_markdown.py * Automated Change * Automated Change * added empting reference folders before autogen docs * updates * Automated Change * update tests gitactions * Automated Change * up * Automated Change * Automated Change * update pytest * Automated Change * tests * Automated Change * examples update * Automated Change * Update generate_sdk_markdown.py * Automated Change * Update test.yml * Update generate_sdk_markdown.py * strip * Automated Change * Workflow : check test update * Automated Change * Automated Change * Automated Change * Update test.yml * Automated Change * Update test.yml * Automated Change * Automated Change * up * Automated Change * Update generate_sdk_markdown.py * Automated Change * update workflows * fix guides * testing * Update gh-pages.yml * Update gh-pages.yml Co-authored-by: tehcoderer <tehcoderer@users.noreply.github.com> Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com> Co-authored-by: Chavithra PARANA <chavithra@gmail.com> Co-authored-by: Chavithra <Chavithra@users.noreply.github.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
8.2 KiB
Vendored
8.2 KiB
Vendored
title, description
| title | description |
|---|---|
| rename | OpenBB Terminal Function |
rename
The column you want to rename from a dataset.
Usage
rename [-d {}] -o OLDCOL -n NEWCOL
Parameters
| Name | Description | Default | Optional | Choices |
|---|---|---|---|---|
| dataset | Dataset that will get a column renamed | None | True | None |
| oldcol | Old column from dataset to be renamed | None | False | None |
| newcol | New column from dataset to be renamed | None | False | None |
Examples
2022 Jul 23, 10:16 (🦋) /forecast/ $ show AAPL
AAPL dataset has shape (row, column): (759, 7)
Dataset AAPL | Showing 10 of 759 rows
┏━━━┳━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┓
┃ ┃ date ┃ open ┃ high ┃ low ┃ close ┃ adj_close ┃ volume ┃
┡━━━╇━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━┩
│ 0 │ 2019-07-15 │ 51.02 │ 51.47 │ 51.00 │ 51.30 │ 50.07 │ 67789600 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 1 │ 2019-07-16 │ 51.15 │ 51.53 │ 50.88 │ 51.12 │ 49.90 │ 67467200 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 2 │ 2019-07-17 │ 51.01 │ 51.27 │ 50.82 │ 50.84 │ 49.62 │ 56430000 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 3 │ 2019-07-18 │ 51.00 │ 51.47 │ 50.92 │ 51.42 │ 50.18 │ 74162400 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 4 │ 2019-07-19 │ 51.45 │ 51.62 │ 50.59 │ 50.65 │ 49.43 │ 83717200 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 5 │ 2019-07-22 │ 50.91 │ 51.81 │ 50.90 │ 51.81 │ 50.56 │ 89111600 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 6 │ 2019-07-23 │ 52.12 │ 52.23 │ 51.82 │ 52.21 │ 50.96 │ 73420800 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 7 │ 2019-07-24 │ 51.92 │ 52.29 │ 51.79 │ 52.17 │ 50.92 │ 59966400 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 8 │ 2019-07-25 │ 52.22 │ 52.31 │ 51.68 │ 51.76 │ 50.51 │ 55638400 │
├───┼────────────┼───────┼───────┼───────┼───────┼───────────┼──────────┤
│ 9 │ 2019-07-26 │ 51.87 │ 52.43 │ 51.78 │ 51.94 │ 50.69 │ 70475600 │
└───┴────────────┴───────┴───────┴───────┴───────┴───────────┴──────────┘
2022 Jul 23, 10:16 (🦋) /forecast/ $ rename AAPL -o close -n new_name
2022 Jul 23, 10:16 (🦋) /forecast/ $ show AAPL
AAPL dataset has shape (row, column): (759, 7)
Dataset AAPL | Showing 10 of 759 rows
┏━━━┳━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┓
┃ ┃ date ┃ open ┃ high ┃ low ┃ new_name ┃ adj_close ┃ volume ┃
┡━━━╇━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━┩
│ 0 │ 2019-07-15 │ 51.02 │ 51.47 │ 51.00 │ 51.30 │ 50.07 │ 67789600 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 1 │ 2019-07-16 │ 51.15 │ 51.53 │ 50.88 │ 51.12 │ 49.90 │ 67467200 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 2 │ 2019-07-17 │ 51.01 │ 51.27 │ 50.82 │ 50.84 │ 49.62 │ 56430000 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 3 │ 2019-07-18 │ 51.00 │ 51.47 │ 50.92 │ 51.42 │ 50.18 │ 74162400 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 4 │ 2019-07-19 │ 51.45 │ 51.62 │ 50.59 │ 50.65 │ 49.43 │ 83717200 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 5 │ 2019-07-22 │ 50.91 │ 51.81 │ 50.90 │ 51.81 │ 50.56 │ 89111600 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 6 │ 2019-07-23 │ 52.12 │ 52.23 │ 51.82 │ 52.21 │ 50.96 │ 73420800 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 7 │ 2019-07-24 │ 51.92 │ 52.29 │ 51.79 │ 52.17 │ 50.92 │ 59966400 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 8 │ 2019-07-25 │ 52.22 │ 52.31 │ 51.68 │ 51.76 │ 50.51 │ 55638400 │
├───┼────────────┼───────┼───────┼───────┼──────────┼───────────┼──────────┤
│ 9 │ 2019-07-26 │ 51.87 │ 52.43 │ 51.78 │ 51.94 │ 50.69 │ 70475600 │
└───┴────────────┴───────┴───────┴───────┴──────────┴───────────┴──────────┘