Skip to content

Commit 5dad2a2

Browse files
committed
Keep coerce_to_ns as boolean
1 parent 9b80ede commit 5dad2a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/pyarrow/types.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _get_pandas_tz_type(arrow_type, coerce_to_ns=False):
186186

187187

188188
def _to_pandas_dtype(arrow_type, options=None):
189-
coerce_to_ns = (options and options.get('coerce_temporal_nanoseconds', False))
189+
coerce_to_ns = bool(options and options.get('coerce_temporal_nanoseconds', False))
190190

191191
if getattr(arrow_type, 'tz', None):
192192
dtype = _get_pandas_tz_type(arrow_type, coerce_to_ns)

0 commit comments

Comments
 (0)