diff --git a/swarms/agents/workers/WorkerUltraNode.py b/swarms/agents/workers/WorkerUltraNode.py index 7118d4e7..e852a406 100644 --- a/swarms/agents/workers/WorkerUltraNode.py +++ b/swarms/agents/workers/WorkerUltraNode.py @@ -6,7 +6,9 @@ from typing import Dict, List from swarms.agents.utils.AgentManager import AgentManager from swarms.utils.main import BaseHandler, FileHandler, FileType -from swarms.tools.agent_tools import CsvToDataframe, ExitConversation, RequestsGet, CodeEditor, Terminal +from swarms.tools.agent_tools import ExitConversation, RequestsGet, CodeEditor, Terminal +from swarms.utils.main import CsvToDataframe + from swarms.tools.main import BaseToolSet from swarms.utils.main import StaticUploader diff --git a/swarms/utils/main.py b/swarms/utils/main.py index 8fde50bb..b512abe8 100644 --- a/swarms/utils/main.py +++ b/swarms/utils/main.py @@ -402,7 +402,7 @@ class FileHandler: from swarms.prompts.prompts import DATAFRAME_PROMPT - +import pandas as pd class CsvToDataframe(BaseHandler): def handle(self, filename: str): df = pd.read_csv(filename)