Skip to content

Commit 060eab3

Browse files
committed
allow for pandas 3 strings
1 parent c6090ed commit 060eab3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/source/python/data.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ Here we have:
648648
.. code-block:: python
649649
650650
>>> print(dict_array.type)
651-
dictionary<values=string, indices=int64, ordered=0>
651+
dictionary<values=...string, indices=int64, ordered=0>
652652
>>> dict_array.indices
653653
<pyarrow.lib.Int64Array object at ...>
654654
[
@@ -684,7 +684,7 @@ When using :class:`~.DictionaryArray` with pandas, the analogue is
684684
6 NaN
685685
7 baz
686686
dtype: category
687-
Categories (3, object): ['foo', 'bar', 'baz']
687+
Categories (3, ...): ['foo', 'bar', 'baz']
688688
689689
.. _data.record_batch:
690690

@@ -714,7 +714,7 @@ A record batch can be created from this list of arrays using
714714
4
715715
>>> batch.schema
716716
f0: int64
717-
f1: string
717+
f1: ...string
718718
f2: bool
719719
>>>
720720
>>> batch[1]
@@ -761,7 +761,7 @@ one or more copies of the batch using ``Table.from_batches``:
761761
>>> table
762762
pyarrow.Table
763763
f0: int64
764-
f1: string
764+
f1: ...string
765765
f2: bool
766766
----
767767
f0: [[1,2,3,4],[1,2,3,4],...,[1,2,3,4],[1,2,3,4]]

docs/source/python/ipc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ convenience function ``pyarrow.ipc.open_stream``:
9494
... batches = [b for b in reader]
9595
>>> schema
9696
f0: int64
97-
f1: string
97+
f1: ...string
9898
f2: bool
9999
>>> len(batches)
100100
5

docs/source/python/pandas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ number of possible values.
182182
>>> table = pa.Table.from_pandas(df)
183183
>>> table
184184
pyarrow.Table
185-
cat: dictionary<values=string, indices=int8, ordered=0>
185+
cat: dictionary<values=...string, indices=int8, ordered=0>
186186
----
187187
cat: [ -- dictionary:
188188
["a","b","c"] -- indices:

docs/source/python/parquet.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ concatenate them into a single table. You can read individual row groups with
238238
>>> parquet_file.read_row_group(0)
239239
pyarrow.Table
240240
one: double
241-
two: string
241+
two: ...string
242242
three: bool
243-
__index_level_0__: string
243+
__index_level_0__: ...string
244244
----
245245
one: [[-1,null,2.5]]
246246
two: [["foo","bar","baz"]]
@@ -350,9 +350,9 @@ and improved performance for columns with many repeated string values.
350350
>>> pq.read_table('example.parquet', read_dictionary=['two'])
351351
pyarrow.Table
352352
one: double
353-
two: dictionary<values=string, indices=int32, ordered=0>
353+
two: dictionary<values=...string, indices=int32, ordered=0>
354354
three: bool
355-
__index_level_0__: string
355+
__index_level_0__: ...string
356356
----
357357
one: [[-1,null,2.5]]
358358
two: [ -- dictionary:

0 commit comments

Comments
 (0)