Skip to content

Commit

Permalink
Add max_precision to the TableData constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Sep 19, 2021
1 parent edab926 commit 55b78b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabledata/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(
dp_extractor: Optional[dp.DataPropertyExtractor] = None,
type_hints: Optional[Sequence[TypeHint]] = None,
max_workers: Optional[int] = None,
max_precision: Optional[int] = None,
):
self.__table_name = table_name
self.__value_matrix: Optional[Sequence] = None
Expand All @@ -55,7 +56,7 @@ def __init__(
if dp_extractor:
self.__dp_extractor = copy.deepcopy(dp_extractor)
else:
self.__dp_extractor = dp.DataPropertyExtractor()
self.__dp_extractor = dp.DataPropertyExtractor(max_precision=max_precision)

if type_hints:
self.__dp_extractor.column_type_hints = type_hints
Expand Down

0 comments on commit 55b78b8

Please sign in to comment.