Skip to content

Commit 156850c

Browse files
committed
Run docs pre-commit
1 parent 0e9118c commit 156850c

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

‎docs/source/python/parquet/parquet_datasets.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ added is to use the local filesystem.
6464
>>> table = pa.table({'one': [-1, None, 2.5],
6565
... 'two': ['foo', 'bar', 'baz'],
6666
... 'three': [True, False, True]})
67-
...
67+
...
6868
6969
>>> # Local dataset write
7070
>>> pq.write_to_dataset(table, root_path='dataset_name',

‎docs/source/python/parquet/parquet_encryption.rst‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Writing an encrypted Parquet file:
3939

4040
.. code-block:: python
4141
42+
>>> import pyarrow.parquet as pq
4243
>>> encryption_properties = crypto_factory.file_encryption_properties( # doctest: +SKIP
4344
... kms_connection_config, encryption_config)
4445
>>> with pq.ParquetWriter(filename, schema, # doctest: +SKIP
@@ -193,17 +194,18 @@ all columns are encrypted with the same key identified by ``column_key_id``:
193194

194195
.. code-block:: python
195196
196-
schema = pa.schema([
197-
("MapColumn", pa.map_(pa.string(), pa.int32())),
198-
("StructColumn", pa.struct([("f1", pa.int32()), ("f2", pa.string())])),
199-
])
200-
201-
encryption_config = pe.EncryptionConfiguration(
202-
footer_key="footer_key_name",
203-
column_keys={
204-
"column_key_id": [ "MapColumn", "StructColumn" ],
205-
},
206-
)
197+
>>> import pyarrow as pa
198+
>>> schema = pa.schema([
199+
... ("MapColumn", pa.map_(pa.string(), pa.int32())),
200+
... ("StructColumn", pa.struct([("f1", pa.int32()), ("f2", pa.string())])),
201+
... ])
202+
203+
>>> encryption_config = pe.EncryptionConfiguration(
204+
... footer_key="footer_key_name",
205+
... column_keys={
206+
... "column_key_id": [ "MapColumn", "StructColumn" ],
207+
... },
208+
... )
207209
208210
An example encryption configuration for columns with nested fields, where
209211
some inner fields are encrypted with the same key identified by ``column_key_id``:

‎docs/source/python/parquet/parquet_type_handling.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and improved performance for columns with many repeated string values.
3939
>>> table = pa.table({'one': [-1, None, 2.5],
4040
... 'two': ['foo', 'bar', 'baz'],
4141
... 'three': [True, False, True]})
42-
...
42+
...
4343
>>> pq.write_table(table, 'example.parquet')
4444
4545
>>> pq.read_table('example.parquet', read_dictionary=['two'])

0 commit comments

Comments
 (0)