Skip to content

Commit 1c55e2a

Browse files
Wendong-Fanwaleedalzarooni
authored andcommitted
chore: remove pandas ai (#3249)
1 parent 3693594 commit 1c55e2a

File tree

9 files changed

+188
-937
lines changed

9 files changed

+188
-937
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: What version of camel are you using?
2828
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
29-
placeholder: E.g., 0.2.76a12
29+
placeholder: E.g., 0.2.76a13
3030
validations:
3131
required: true
3232

camel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from camel.logger import disable_logging, enable_logging, set_log_level
1616

17-
__version__ = '0.2.76a12'
17+
__version__ = '0.2.76a13'
1818

1919
__all__ = [
2020
'__version__',

camel/loaders/__init__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from .markitdown import MarkItDownLoader
2222
from .mineru_extractor import MinerU
2323
from .mistral_reader import MistralReader
24-
from .pandas_reader import PandasReader
2524
from .scrapegraph_reader import ScrapeGraphAI
2625
from .unstructured_io import UnstructuredIO
2726

@@ -33,7 +32,6 @@
3332
'JinaURLReader',
3433
'Firecrawl',
3534
'Apify',
36-
'PandasReader',
3735
'ChunkrReader',
3836
'ChunkrReaderConfig',
3937
'MinerU',
@@ -42,3 +40,14 @@
4240
'ScrapeGraphAI',
4341
'MistralReader',
4442
]
43+
44+
45+
def __getattr__(name: str):
46+
if name == 'PandasReader':
47+
raise ImportError(
48+
"PandasReader has been removed from camel.loaders. "
49+
"The pandasai dependency limited pandas to version 1.5.3. "
50+
"Please use ExcelToolkit from camel.toolkits instead for "
51+
"handling structured data."
52+
)
53+
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")

0 commit comments

Comments
 (0)