We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2916d0 commit 1413d48Copy full SHA for 1413d48
pandas/io/parsers/arrow_parser_wrapper.py
@@ -146,17 +146,12 @@ def handle_warning(invalid_row) -> str:
146
column_types = {}
147
for col, col_dtype in self.dtype.items():
148
source_dtype = pandas_dtype(col_dtype)
149
-
150
- try:
151
- target_dtype = to_pyarrow_type(source_dtype.type)
152
- if target_dtype:
153
- column_types[col] = target_dtype
154
155
- except TypeError:
+ target_dtype = to_pyarrow_type(source_dtype.type)
+ if target_dtype:
+ column_types[col] = target_dtype
156
# TODO: Unsupported dtypes silently ignored - may cause
157
# unexpected behavior when pyarrow applies default inference
158
# instead of user's dtype
159
- pass
160
161
if column_types:
162
self.convert_options["column_types"] = column_types
0 commit comments