mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-11-07 21:34:05 +00:00
add concat rows to pandas excel (#262)
Co-authored-by: Jerry Liu <jerryjliu98@gmail.com>
This commit is contained in:
parent
bf10b903df
commit
62f94d0eba
@ -28,11 +28,13 @@ class PandasExcelReader(BaseReader):
|
|||||||
self,
|
self,
|
||||||
*args: Any,
|
*args: Any,
|
||||||
pandas_config: dict = {},
|
pandas_config: dict = {},
|
||||||
|
concat_rows: bool = True,
|
||||||
**kwargs: Any
|
**kwargs: Any
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Init params."""
|
"""Init params."""
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self._pandas_config = pandas_config
|
self._pandas_config = pandas_config
|
||||||
|
self._concat_rows = concat_rows
|
||||||
|
|
||||||
def load_data(
|
def load_data(
|
||||||
self, file: Path, sheet_name: Optional[Union[str, int]] = None, extra_info: Optional[Dict] = None
|
self, file: Path, sheet_name: Optional[Union[str, int]] = None, extra_info: Optional[Dict] = None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user