File tree 3 files changed +35
-2
lines changed
3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,19 @@ def get_sheet_by_index(self, index: int) -> CalamineSheet:
98
98
return self .book .get_sheet_by_index (index )
99
99
100
100
def get_sheet_data (
101
- self , sheet : CalamineSheet , file_rows_needed : int | None = None
101
+ self ,
102
+ sheet : CalamineSheet ,
103
+ file_rows_needed : int | None = None ,
104
+ notes : pd .DataFrame | None = None ,
102
105
) -> list [list [Scalar | NaTType | time ]]:
106
+ if notes is not None :
107
+ raise NotImplementedError (
108
+ """
109
+ Notes are not supported in python-calamine engine,
110
+ see https://github.com/dimastbk/python-calamine/tree/master
111
+ """
112
+ )
113
+
103
114
def _convert_cell (value : _CellValue ) -> Scalar | NaTType | time :
104
115
if isinstance (value , float ):
105
116
val = int (value )
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ def get_sheet_by_name(self, name: str):
100
100
raise ValueError (f"sheet { name } not found" )
101
101
102
102
def get_sheet_data (
103
- self , sheet , file_rows_needed : int | None = None
103
+ self ,
104
+ sheet ,
105
+ file_rows_needed : int | None = None ,
106
+ notes : pd .DataFrame | None = None ,
104
107
) -> list [list [Scalar | NaTType ]]:
105
108
"""
106
109
Parse an ODF Table into a list of lists
@@ -111,6 +114,14 @@ def get_sheet_data(
111
114
TableRow ,
112
115
)
113
116
117
+ if notes is not None :
118
+ raise NotImplementedError (
119
+ """
120
+ Notes are not supported in odfreader engine,
121
+ see https://github.com/eea/odfpy
122
+ """
123
+ )
124
+
114
125
covered_cell_name = CoveredTableCell ().qname
115
126
table_cell_name = TableCell ().qname
116
127
cell_names = {covered_cell_name , table_cell_name }
Original file line number Diff line number Diff line change 20
20
StorageOptions ,
21
21
)
22
22
23
+ from pandas .core .frame import DataFrame
24
+
23
25
24
26
class PyxlsbReader (BaseExcelReader ["Workbook" ]):
25
27
@doc (storage_options = _shared_docs ["storage_options" ])
@@ -98,7 +100,16 @@ def get_sheet_data(
98
100
self ,
99
101
sheet ,
100
102
file_rows_needed : int | None = None ,
103
+ notes : DataFrame | None = None ,
101
104
) -> list [list [Scalar ]]:
105
+ if notes is not None :
106
+ raise NotImplementedError (
107
+ """
108
+ Notes are not supported in pyxlsb engine,
109
+ see https://github.com/willtrnr/pyxlsb
110
+ """
111
+ )
112
+
102
113
data : list [list [Scalar ]] = []
103
114
previous_row_number = - 1
104
115
# When sparse=True the rows can have different lengths and empty rows are
You can’t perform that action at this time.
0 commit comments