Fix to_dict()

This commit is contained in:
Igor Radovanovic
2023-07-24 23:09:39 +02:00
parent 73be75f9c1
commit f7b2caf3dc
2 changed files with 2 additions and 1 deletions

View File

@@ -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()

View File

@@ -1,5 +1,6 @@
from openbb_core.app.command_runner import CommandRunnerSession
class Container:
def __init__(self, command_runner_session: CommandRunnerSession) -> None: