A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arrow.apache.org/docs/python/generated/pyarrow.compute.CastOptions.html below:

pyarrow.compute.CastOptions — Apache Arrow v21.0.0

pyarrow.compute.CastOptions#
class pyarrow.compute.CastOptions(target_type=None, *, allow_int_overflow=None, allow_time_truncate=None, allow_time_overflow=None, allow_decimal_truncate=None, allow_float_truncate=None, allow_invalid_utf8=None)#

Bases: _CastOptions

Options for the cast function.

Parameters:
target_typeDataType, optional

The PyArrow type to cast to.

allow_int_overflowbool, default False

Whether integer overflow is allowed when casting.

allow_time_truncatebool, default False

Whether time precision truncation is allowed when casting.

allow_time_overflowbool, default False

Whether date/time range overflow is allowed when casting.

allow_decimal_truncatebool, default False

Whether decimal precision truncation is allowed when casting.

allow_float_truncatebool, default False

Whether floating-point precision truncation is allowed when casting.

allow_invalid_utf8bool, default False

Whether producing invalid utf8 data is allowed when casting.

__init__(self, target_type=None, *, allow_int_overflow=None, allow_time_truncate=None, allow_time_overflow=None, allow_decimal_truncate=None, allow_float_truncate=None, allow_invalid_utf8=None)#

Methods

Attributes

allow_decimal_truncate#
allow_float_truncate#
allow_int_overflow#
allow_invalid_utf8#
allow_time_overflow#
allow_time_truncate#
static deserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

is_safe(self)#
static safe(target_type=None)#

” Create a CastOptions for a safe cast.

Parameters:
target_typeoptional

Target cast type for the safe cast.

serialize(self)#
static unsafe(target_type=None)#

” Create a CastOptions for an unsafe cast.

Parameters:
target_typeoptional

Target cast type for the unsafe cast.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4