-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path__init__.py
More file actions
708 lines (612 loc) · 26.1 KB
/
__init__.py
File metadata and controls
708 lines (612 loc) · 26.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
from __future__ import annotations
import typing
from collections.abc import Callable
from typing import TYPE_CHECKING, Literal, TypeAlias
if TYPE_CHECKING:
import pandas as pd
import polars as pl
import pyarrow as pa
from os.path import expanduser
from pathlib import Path
try:
import importlib.util
importlib.util.find_spec("pyarrow")
_PYARROW_AVAILABLE = True
except ImportError:
_PYARROW_AVAILABLE = False
from ._fastexcel import (
ArrowError,
CalamineCellError,
CalamineError,
CannotRetrieveCellDataError,
CellError,
CellErrors,
ColumnInfo,
ColumnInfoNoDtype,
ColumnNotFoundError,
DefinedName,
FastExcelError,
InvalidParametersError,
SheetNotFoundError,
UnsupportedColumnTypeCombinationError,
__version__,
_ExcelReader,
_ExcelSheet,
_ExcelTable,
)
from ._fastexcel import read_excel as _read_excel
DType = Literal["null", "int", "float", "string", "boolean", "datetime", "date", "duration"]
DTypeMap: TypeAlias = "dict[str | int, DType]"
ColumnNameFrom: TypeAlias = Literal["provided", "looked_up", "generated"]
DTypeFrom: TypeAlias = Literal[
"provided_for_all", "provided_by_index", "provided_by_name", "guessed"
]
SheetVisible: TypeAlias = Literal["visible", "hidden", "veryhidden"]
class ExcelSheet:
"""A class representing a single sheet in an Excel File"""
def __init__(self, sheet: _ExcelSheet) -> None:
self._sheet = sheet
@property
def name(self) -> str:
"""The name of the sheet"""
return self._sheet.name
@property
def width(self) -> int:
"""The sheet's width"""
return self._sheet.width
@property
def height(self) -> int:
"""The sheet's height, with `skip_rows` and `nrows` applied"""
return self._sheet.height
@property
def total_height(self) -> int:
"""The sheet's total height"""
return self._sheet.total_height
@property
def selected_columns(self) -> list[ColumnInfo]:
"""The sheet's selected columns"""
return self._sheet.selected_columns
def available_columns(self) -> list[ColumnInfo]:
"""The columns available for the given sheet"""
return self._sheet.available_columns()
@property
def specified_dtypes(self) -> DTypeMap | None:
"""The dtypes specified for the sheet"""
return self._sheet.specified_dtypes
@property
def visible(self) -> SheetVisible:
"""The visibility of the sheet"""
return self._sheet.visible
def to_arrow(self) -> pa.RecordBatch:
"""Converts the sheet to a pyarrow `RecordBatch`
Requires the `pyarrow` extra to be installed.
"""
if not _PYARROW_AVAILABLE:
raise ImportError(
"pyarrow is required for to_arrow(). Install with: pip install 'fastexcel[pyarrow]'"
)
return self._sheet.to_arrow()
def to_arrow_with_errors(self) -> tuple[pa.RecordBatch, CellErrors | None]:
"""Converts the sheet to a pyarrow `RecordBatch` with error information.
Stores the positions of any values that cannot be parsed as the specified type and were
therefore converted to None.
Requires the `pyarrow` extra to be installed.
"""
if not _PYARROW_AVAILABLE:
raise ImportError(
"pyarrow is required for to_arrow_with_errors(). Install with: pip install 'fastexcel[pyarrow]'" # noqa: E501
)
rb, cell_errors = self._sheet.to_arrow_with_errors()
if not cell_errors.errors:
return (rb, None)
return (rb, cell_errors)
def to_pandas(self) -> pd.DataFrame:
"""Converts the sheet to a Pandas `DataFrame`.
Requires the `pandas` extra to be installed.
"""
# Note: pandas PyCapsule interface requires __dataframe__ or __arrow_c_stream__
# which we don't implement. Using pyarrow conversion for now.
# (see https://pandas.pydata.org/docs/reference/api/pandas.api.interchange.from_dataframe.html)
return self.to_arrow().to_pandas()
def to_polars(self) -> pl.DataFrame:
"""Converts the sheet to a Polars `DataFrame`.
Uses the Arrow PyCapsule Interface for zero-copy data exchange.
Requires the `polars` extra to be installed.
"""
import polars as pl
return pl.DataFrame(self)
def __arrow_c_schema__(self) -> object:
"""Export the schema as an `ArrowSchema` `PyCapsule`.
https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html#arrowschema-export
The Arrow PyCapsule Interface enables zero-copy data exchange with
Arrow-compatible libraries without requiring PyArrow as a dependency.
"""
return self._sheet.__arrow_c_schema__()
def __arrow_c_array__(self, requested_schema: object | None = None) -> tuple[object, object]:
"""Export the schema and data as a pair of `ArrowSchema` and `ArrowArray` `PyCapsules`.
The optional `requested_schema` parameter allows for potential schema conversion.
https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html#arrowarray-export
The Arrow PyCapsule Interface enables zero-copy data exchange with
Arrow-compatible libraries without requiring PyArrow as a dependency.
"""
return self._sheet.__arrow_c_array__(requested_schema)
def __repr__(self) -> str:
return self._sheet.__repr__()
class ExcelTable:
"""A class representing a single table in an Excel file"""
def __init__(self, table: _ExcelTable) -> None:
self._table = table
@property
def name(self) -> str:
"""The name of the table"""
return self._table.name
@property
def sheet_name(self) -> str:
"""The name of the sheet this table belongs to"""
return self._table.sheet_name
@property
def width(self) -> int:
"""The table's width"""
return self._table.width
@property
def height(self) -> int:
"""The table's height"""
return self._table.height
@property
def total_height(self) -> int:
"""The table's total height"""
return self._table.total_height
@property
def offset(self) -> int:
"""The table's offset before data starts"""
return self._table.offset
@property
def selected_columns(self) -> list[ColumnInfo]:
"""The table's selected columns"""
return self._table.selected_columns
def available_columns(self) -> list[ColumnInfo]:
"""The columns available for the given table"""
return self._table.available_columns()
@property
def specified_dtypes(self) -> DTypeMap | None:
"""The dtypes specified for the table"""
return self._table.specified_dtypes
def to_arrow(self) -> pa.RecordBatch:
"""Converts the table to a pyarrow `RecordBatch`
Requires the `pyarrow` extra to be installed.
"""
if not _PYARROW_AVAILABLE:
raise ImportError(
"pyarrow is required for to_arrow(). Install with: pip install 'fastexcel[pyarrow]'"
)
return self._table.to_arrow()
def to_pandas(self) -> pd.DataFrame:
"""Converts the table to a Pandas `DataFrame`.
Requires the `pandas` extra to be installed.
"""
# Note: pandas PyCapsule interface requires __dataframe__ or __arrow_c_stream__
# which we don't implement. Using pyarrow conversion for now.
# (see https://pandas.pydata.org/docs/reference/api/pandas.api.interchange.from_dataframe.html)
return self.to_arrow().to_pandas()
def to_polars(self) -> pl.DataFrame:
"""Converts the table to a Polars `DataFrame`.
Uses the Arrow PyCapsule Interface for zero-copy data exchange.
Requires the `polars` extra to be installed.
"""
import polars as pl
return pl.DataFrame(self)
def __arrow_c_schema__(self) -> object:
"""Export the schema as an `ArrowSchema` `PyCapsule`.
https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html#arrowschema-export
The Arrow PyCapsule Interface enables zero-copy data exchange with
Arrow-compatible libraries without requiring PyArrow as a dependency.
"""
return self._table.__arrow_c_schema__()
def __arrow_c_array__(self, requested_schema: object | None = None) -> tuple[object, object]:
"""Export the schema and data as a pair of `ArrowSchema` and `ArrowArray` `PyCapsules`.
The optional `requested_schema` parameter allows for potential schema conversion.
https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html#arrowarray-export
The Arrow PyCapsule Interface enables zero-copy data exchange with
Arrow-compatible libraries without requiring PyArrow as a dependency.
"""
return self._table.__arrow_c_array__(requested_schema)
class ExcelReader:
"""A class representing an open Excel file and allowing to read its sheets"""
def __init__(self, reader: _ExcelReader) -> None:
self._reader = reader
@property
def sheet_names(self) -> list[str]:
"""The list of sheet names"""
return self._reader.sheet_names
@typing.overload
def load_sheet(
self,
idx_or_name: int | str,
*,
header_row: int | None = 0,
column_names: list[str] | None = None,
skip_rows: int | list[int] | Callable[[int], bool] | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
eager: Literal[False] = ...,
) -> ExcelSheet: ...
@typing.overload
def load_sheet(
self,
idx_or_name: int | str,
*,
header_row: int | None = 0,
column_names: list[str] | None = None,
skip_rows: int | list[int] | Callable[[int], bool] | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
eager: Literal[True] = ...,
) -> pa.RecordBatch: ...
def load_sheet(
self,
idx_or_name: int | str,
*,
header_row: int | None = 0,
column_names: list[str] | None = None,
skip_rows: int | list[int] | Callable[[int], bool] | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
eager: bool = False,
) -> ExcelSheet | pa.RecordBatch:
"""Loads a sheet by index or name.
:param idx_or_name: The index (starting at 0) or the name of the sheet to load.
:param header_row: The index of the row containing the column labels, default index is 0.
If `None`, the sheet does not have any column labels.
Any rows before the `header_row` will be automatically skipped.
:param column_names: Overrides headers found in the document.
If `column_names` is used, `header_row` will be ignored.
:param n_rows: Specifies how many rows should be loaded.
If `None`, all rows are loaded
:param skip_rows: Specifies which rows should be skipped after the `header_row`.
Any rows before the `header_row` are automatically skipped.
It means row indices are relative to data rows, not the sheet!
Can be one of:
- `int`: Skip this many rows after the header row
- `list[int]`: Skip specific row indices (0-based relative to data rows)
- `Callable[[int], bool]`: Function that receives row index (0-based
relative to data rows) and returns True to skip the row
- `None`: If `header_row` is None, skips empty rows at beginning
:param schema_sample_rows: Specifies how many rows should be used to determine
the dtype of a column. Cannot be 0. A specific dtype can be
enforced for some or all columns through the `dtypes` parameter.
If `None`, all rows will be used.
:param dtype_coercion: Specifies how type coercion should behave. `coerce` (the default)
will try to coerce different dtypes in a column to the same one,
whereas `strict` will raise an error in case a column contains
several dtypes. Note that this only applies to columns whose dtype
is guessed, i.e. not specified via `dtypes`.
:param use_columns: Specifies the columns to use. Can either be:
- `None` to select all columns
- A list of strings and ints, the column names and/or indices
(starting at 0)
- A string, a comma separated list of Excel column letters and column
ranges (e.g. `"A:E"` or `"A,C,E:F"`, which would result in
`A,B,C,D,E` and `A,C,E,F`). Also supports open-ended ranges
(e.g. `"B:"` to select all columns from B onwards) and from-beginning
ranges (e.g. `":C"` to select columns from A to C). These can be
combined for "except" patterns (e.g. `":C,E:"` to select everything
except column D)
- A callable, a function that takes a column and returns a boolean
indicating whether the column should be used
:param dtypes: An optional dtype (for all columns)
or dict of dtypes with keys as column indices or names.
:param eager: Specifies whether the sheet should be loaded eagerly.
`False` (default) will load the sheet lazily using the `PyCapsule` interface,
whereas `True` will load it eagerly via `pyarrow`.
Eager loading requires the `pyarrow` extra to be installed.
"""
sheet_or_rb = self._reader.load_sheet(
idx_or_name=idx_or_name,
header_row=header_row,
column_names=column_names,
skip_rows=skip_rows,
n_rows=n_rows,
schema_sample_rows=schema_sample_rows,
dtype_coercion=dtype_coercion,
use_columns=use_columns,
dtypes=dtypes,
eager=eager,
)
return sheet_or_rb if eager else ExcelSheet(sheet_or_rb)
def table_names(self, sheet_name: str | None = None) -> list[str]:
"""The list of table names.
Will return an empty list if no tables are found.
:param sheet_name: If given, will limit the list to the given sheet, will be faster
too.
"""
return self._reader.table_names(sheet_name)
def defined_names(self) -> list[DefinedName]:
"""The list of defined names (named ranges) in the workbook.
Returns a list of DefinedName objects with 'name' and 'formula' attributes.
The formula is a string representation of the range or expression.
Will return an empty list if no defined names are found.
"""
return self._reader.defined_names()
@typing.overload
def load_table(
self,
name: str,
*,
header_row: int | None = None,
column_names: list[str] | None = None,
skip_rows: int | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
eager: Literal[False] = ...,
) -> ExcelTable: ...
@typing.overload
def load_table(
self,
name: str,
*,
header_row: int | None = None,
column_names: list[str] | None = None,
skip_rows: int | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
eager: Literal[True] = ...,
) -> pa.RecordBatch: ...
def load_table(
self,
name: str,
*,
header_row: int | None = None,
column_names: list[str] | None = None,
skip_rows: int | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
eager: bool = False,
) -> ExcelTable | pa.RecordBatch:
"""Loads a table by name.
:param name: The name of the table to load.
:param header_row: The index of the row containing the column labels.
If `None`, the table's column names will be used.
Any rows before the `header_row` will be automatically skipped.
:param column_names: Overrides headers found in the document.
If `column_names` is used, `header_row` will be ignored.
:param n_rows: Specifies how many rows should be loaded.
If `None`, all rows are loaded
:param skip_rows: Specifies how many rows should be skipped after the `header_row`.
Any rows before the `header_row` are automatically skipped.
If `header_row` is `None`, it skips the number of rows from the
start of the sheet.
:param schema_sample_rows: Specifies how many rows should be used to determine
the dtype of a column. Cannot be 0. A specific dtype can be
enforced for some or all columns through the `dtypes` parameter.
If `None`, all rows will be used.
:param dtype_coercion: Specifies how type coercion should behave. `coerce` (the default)
will try to coerce different dtypes in a column to the same one,
whereas `strict` will raise an error in case a column contains
several dtypes. Note that this only applies to columns whose dtype
is guessed, i.e. not specified via `dtypes`.
:param use_columns: Specifies the columns to use. Can either be:
- `None` to select all columns
- A list of strings and ints, the column names and/or indices
(starting at 0)
- A string, a comma separated list of Excel column letters and column
ranges (e.g. `"A:E"` or `"A,C,E:F"`, which would result in
`A,B,C,D,E` and `A,C,E,F`). Also supports open-ended ranges
(e.g. `"B:"` to select all columns from B onwards) and from-beginning
ranges (e.g. `":C"` to select columns from A to C). These can be
combined for "except" patterns (e.g. `":C,E:"` to select everything
except column D)
- A callable, a function that takes a column and returns a boolean
indicating whether the column should be used
:param dtypes: An optional dtype (for all columns)
or dict of dtypes with keys as column indices or names.
:param eager: Specifies whether the table should be loaded eagerly.
`False` (default) will load the table lazily using the `PyCapsule` interface,
whereas `True` will load it eagerly via `pyarrow`.
Eager loading requires the `pyarrow` extra to be installed.
"""
if eager:
return self._reader.load_table(
name=name,
header_row=header_row,
column_names=column_names,
skip_rows=skip_rows,
n_rows=n_rows,
schema_sample_rows=schema_sample_rows,
dtype_coercion=dtype_coercion,
use_columns=use_columns,
dtypes=dtypes,
eager=True,
)
else:
return ExcelTable(
self._reader.load_table(
name=name,
header_row=header_row,
column_names=column_names,
skip_rows=skip_rows,
n_rows=n_rows,
schema_sample_rows=schema_sample_rows,
dtype_coercion=dtype_coercion,
use_columns=use_columns,
dtypes=dtypes,
eager=False,
)
)
def load_sheet_eager(
self,
idx_or_name: int | str,
*,
header_row: int | None = 0,
column_names: list[str] | None = None,
skip_rows: int | list[int] | Callable[[int], bool] | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str] | list[int] | str | None = None,
dtypes: DType | DTypeMap | None = None,
) -> pa.RecordBatch:
"""Loads a sheet eagerly by index or name.
For xlsx files, this will be faster and more memory-efficient, as it will use
`worksheet_range_ref` under the hood, which returns borrowed types.
Refer to `load_sheet` for parameter documentation
Requires the `pyarrow` extra to be installed.
"""
return self._reader.load_sheet(
idx_or_name=idx_or_name,
header_row=header_row,
column_names=column_names,
skip_rows=skip_rows,
n_rows=n_rows,
schema_sample_rows=schema_sample_rows,
dtype_coercion=dtype_coercion,
use_columns=use_columns,
dtypes=dtypes,
eager=True,
)
def load_sheet_by_name(
self,
name: str,
*,
header_row: int | None = 0,
column_names: list[str] | None = None,
skip_rows: int | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
) -> ExcelSheet:
"""Loads a sheet by name.
Refer to `load_sheet` for parameter documentation
"""
return self.load_sheet(
name,
header_row=header_row,
column_names=column_names,
skip_rows=skip_rows,
n_rows=n_rows,
schema_sample_rows=schema_sample_rows,
dtype_coercion=dtype_coercion,
use_columns=use_columns,
dtypes=dtypes,
)
def load_sheet_by_idx(
self,
idx: int,
*,
header_row: int | None = 0,
column_names: list[str] | None = None,
skip_rows: int | None = None,
n_rows: int | None = None,
schema_sample_rows: int | None = 1_000,
dtype_coercion: Literal["coerce", "strict"] = "coerce",
use_columns: list[str]
| list[int]
| str
| Callable[[ColumnInfoNoDtype], bool]
| None = None,
dtypes: DType | DTypeMap | None = None,
) -> ExcelSheet:
"""Loads a sheet by index.
Refer to `load_sheet` for parameter documentation
"""
return self.load_sheet(
idx,
header_row=header_row,
column_names=column_names,
skip_rows=skip_rows,
n_rows=n_rows,
schema_sample_rows=schema_sample_rows,
dtype_coercion=dtype_coercion,
use_columns=use_columns,
dtypes=dtypes,
)
def __repr__(self) -> str:
return self._reader.__repr__()
def read_excel(source: Path | str | bytes) -> ExcelReader:
"""Opens and loads an excel file.
:param source: The path to a file or its content as bytes
"""
if isinstance(source, str | Path):
source = expanduser(source)
return ExcelReader(_read_excel(source))
__all__ = (
# version
"__version__",
# main entrypoint
"read_excel",
# Python types
"DType",
"DTypeMap",
# Excel reader
"ExcelReader",
# Excel sheet
"ExcelSheet",
# Excel table
"ExcelTable",
# Column metadata
"DTypeFrom",
"ColumnNameFrom",
"ColumnInfo",
# Defined names
"DefinedName",
# Parse error information
"CellError",
"CellErrors",
# Exceptions
"FastExcelError",
"CannotRetrieveCellDataError",
"CalamineCellError",
"CalamineError",
"SheetNotFoundError",
"ColumnNotFoundError",
"ArrowError",
"InvalidParametersError",
"UnsupportedColumnTypeCombinationError",
)