Skip to content

Commit

Permalink
Check dtype based on only the first object
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Apr 26, 2024
1 parent 152c5e0 commit 86b7d7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def partition_id_to_natural_id(self, value: Dict[int, str]) -> None:
)

def _check_supported_type_of_value_in_partition_by(self) -> None:
values = self.dataset[self._partition_by]
values = self.dataset[0][self._partition_by]
values_np = np.array(values)
dtype = values_np.dtype
if not (
Expand Down

0 comments on commit 86b7d7e

Please sign in to comment.