mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 01:12:27 +00:00
Fix to_dict()
This commit is contained in:
@@ -79,7 +79,7 @@ class CommandOutput(GenericModel, Generic[T], Tagged):
|
||||
Dict[str, List]
|
||||
Dictionary of lists.
|
||||
"""
|
||||
df = self.to_dataframe()
|
||||
df = self.to_dataframe().reset_index()
|
||||
results = {}
|
||||
for field in df.columns:
|
||||
results[field] = df[field].tolist()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from openbb_core.app.command_runner import CommandRunnerSession
|
||||
|
||||
|
||||
class Container:
|
||||
|
||||
def __init__(self, command_runner_session: CommandRunnerSession) -> None:
|
||||
|
||||
Reference in New Issue
Block a user