mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 04:41:24 +00:00
* Econometrics enhancements * Docsring * norm show chart when true * isort + lint * Make coint sdk friendly * mypy? * Why you miss this locally pylint? * Clean up granger command * Tests * #3323 * Fix up dwat function * Fix rounding error in test--hopefully * Update bgod and bpag * testing mypy * small commit to help rebase? * Update Panel OLS stuff. Need some more examples and to fix mypy * add docstring example * update controller complete and duplicate printing Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
21 lines
467 B
Python
21 lines
467 B
Python
from typing import Dict
|
|
|
|
import pandas as pd
|
|
|
|
|
|
def get_datasets(data: Dict[str, pd.DataFrame]):
|
|
datasets = {}
|
|
for key, value in data.items():
|
|
for column in value:
|
|
datasets[f"{key}.{column}"] = {column: None, key: None}
|
|
return datasets
|
|
|
|
|
|
def get_ending(dataset: str, column: str) -> str:
|
|
ending = ""
|
|
if dataset:
|
|
ending += f" from dataset '{dataset}'"
|
|
if column:
|
|
ending += f" of '{column}'"
|
|
return ending
|