![]() ![]() Unlike get_total_buffer_size this method will account for array In other words, the sum of bytes from all buffer Return BooleanArray indicating the non-null values. Returns : array bool Array is_valid ( self ) # Whether floating-point NaN values should also be considered null. Parameters : nan_is_null bool (optional, default False) Return BooleanArray indicating the null values. Returns : array bool Array is_null ( self, *, nan_is_null = False ) # Return BooleanArray indicating the NaN values. The index of the value in the array (-1 if not found). memory_pool MemoryPool, optionalĪ memory pool for potential memory allocations. index ( self, value, start = None, end = None, *, memory_pool = None ) # If a buffer is referenced multiple times then it will This method will overestimate in this case and return the Timezone-naive data will be implicitly interpreted asĪn array may only reference a portion of a buffer. Localized timestamps will currently be returned as UTC (pandas’s native Returns : array pyarrow.Array or pyarrow.ChunkedArrayĬhunkedArray is returned if object data overflows binary buffer. If not passed, will allocate memory from the currently-set default ![]() type pyarrow.DataTypeĮxplicit type to attempt to coerce to, otherwise will be inferredĬheck for overflows or other unsafe conversions. Indicate which values are null (True) or not null (False). Parameters : obj ndarray, pandas.Series, array-like mask array ( bool), optional See pyarrow.array for more general conversion from arrays or This method uses Pandas semantics about what values indicate Returns : array Array static from_pandas ( obj, mask=None, type=None, bool safe=True, MemoryPool memory_pool=None ) # Nested type children with length matching type.num_fields. The array’s logical offset (in values, not in bytes) from the The concrete type returned depends on the datatype. format ( self, ** kwargs ) #ĭEPRECATED, use _string Parameters : **kwargs dict Returns : str static from_buffers ( DataType type, length, buffers, null_count=-1, offset=0, children=None ) # Returns : filtered ArrayĪn array of the same type, with only the elements selected by null_selection_behavior str, default “drop” The boolean mask to filter the array with. filter ( self, Array mask, *, null_selection_behavior=u'drop' ) # Returns : result ArrayĪ new array with nulls replaced by the given value. equals ( self, Array other ) # Parameters : other pyarrow.Array Returns : bool fill_null ( self, fill_value ) # diff ( right -0, +0 -2, +1 drop_null ( self ) # Returns : diff strĪ human-readable printout of the differences. The other array to compare this array with. (on the left side) against the other array (on the right side). Return a string containing the result of diffing this array Returns : encoded DictionaryArrayĪ dictionary-encoded version of this array. Parameters : null_encoding str, default “mask” ![]() Returns : cast Array dictionary_encode ( self, null_encoding = 'mask' ) # Memory pool to use for allocations during function execution. options CastOptions, default NoneĪdditional checks pass by CastOptions memory_pool MemoryPool, optional Whether to check for conversion errors such as overflow. Parameters : target_type DataType, default None cast ( self, target_type = None, safe = None, options = None, memory_pool = None ) # Multiplied with the size of the stored data type. To correctly interpret these buffers, you need to also apply the offset ![]() Return a list of Buffer objects pointing to this array’s physical Total number of bytes consumed by the elements of the array.Ī relative position into another array's data. Return zero-copy "view" of array as another data type. Render a "pretty-printed" string representation of the Array.Īlias of to_pylist for compatibility with NumPy.Ĭompute counts of unique elements in array. To_pandas(self)Ĭonvert to a pandas-compatible NumPy array or DataFrame, as appropriateĬonvert to a list of native Python objects. Return a NumPy view or copy of this array (experimental). The sum of bytes in each buffer referenced by the array. See _null() for usage.įrom_buffers(DataType type, length, buffers)Ĭonstruct an Array from a sequence of buffers. Return a list of Buffer objects pointing to this array's physical storage.Ĭast(self)Ĭompute dictionary-encoded representation of array.Ĭompare contents of this array against another one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |