@@ -78,7 +78,6 @@ def _Array_to_arrow_table(self: _arrays.Array) -> pyarrow.Table:
7878 Examples
7979 --------
8080
81- >>> import vortex
8281 >>> array = vortex.array([
8382 ... {'name': 'Joseph', 'age': 25},
8483 ... {'name': 'Narendra', 'age': 31},
@@ -119,7 +118,6 @@ def _Array_to_pandas(self: _arrays.Array) -> pandas.DataFrame:
119118
120119 Construct a dataframe from a Vortex array:
121120
122- >>> import vortex
123121 >>> array = vortex.array([
124122 ... {'name': 'Joseph', 'age': 25},
125123 ... {'name': 'Narendra', 'age': 31},
@@ -166,14 +164,12 @@ def _Array_to_polars_dataframe(
166164 Examples
167165 --------
168166
169- >>> import vortex
170167 >>> array = vortex.array([
171168 ... {'name': 'Joseph', 'age': 25},
172169 ... {'name': 'Narendra', 'age': 31},
173170 ... {'name': 'Angela', 'age': 33},
174171 ... {'name': 'Mikhail', 'age': 57},
175172 ... ])
176- >>> import vortex
177173 >>> array.to_polars_dataframe()
178174 shape: (4, 2)
179175 ┌─────┬──────────┐
@@ -196,9 +192,7 @@ def _Array_to_polars_dataframe(
196192setattr (Array , "to_polars_dataframe" , _Array_to_polars_dataframe )
197193
198194
199- def _Array_to_polars_series (
200- self : _arrays .Array ,
201- ): # -> 'polars.Series': # breaks docs due to Polars issue #7027
195+ def _Array_to_polars_series (self : _arrays .Array ): # -> 'polars.Series': # breaks docs due to Polars issue #7027
202196 """Construct a Polars series from this Vortex array.
203197
204198 .. seealso::
@@ -217,7 +211,6 @@ def _Array_to_polars_series(
217211
218212 Convert a numeric array with nulls to a Polars Series:
219213
220- >>> import vortex
221214 >>> vortex.array([1, None, 2, 3]).to_polars_series() # doctest: +NORMALIZE_WHITESPACE
222215 shape: (4,)
223216 Series: '' [i64]
@@ -267,11 +260,7 @@ def _Array_to_polars_series(
267260setattr (Array , "to_polars_series" , _Array_to_polars_series )
268261
269262
270- def _Array_to_numpy (
271- self : _arrays .Array ,
272- * ,
273- zero_copy_only : bool = True ,
274- ) -> numpy .ndarray :
263+ def _Array_to_numpy (self : _arrays .Array , * , zero_copy_only : bool = True ) -> numpy .ndarray :
275264 """Construct a NumPy array from this Vortex array.
276265
277266 This is an alias for :code:`self.to_arrow_array().to_numpy(zero_copy_only)`
@@ -291,7 +280,6 @@ def _Array_to_numpy(
291280
292281 Construct an immutable ndarray from a Vortex array:
293282
294- >>> import vortex
295283 >>> array = vortex.array([1, 0, 0, 1])
296284 >>> array.to_numpy()
297285 array([1, 0, 0, 1])
@@ -313,14 +301,11 @@ def _Array_to_pylist(self: _arrays.Array) -> list[Any]: # pyright: ignore[repor
313301 Examples
314302 --------
315303
316- >>> import vortex
317304 >>> array = vortex.array([
318305 ... {'name': 'Joseph', 'age': 25},
319306 ... {'name': 'Narendra', 'age': 31},
320307 ... {'name': 'Angela', 'age': 33},
321308 ... ])
322- >>> import pyarrow
323- >>> import vortex
324309 >>> array.to_pylist()
325310 [{'age': 25, 'name': 'Joseph'}, {'age': 31, 'name': 'Narendra'}, {'age': 33, 'name': 'Angela'}]
326311
@@ -358,8 +343,6 @@ def array(
358343
359344 A Vortex array containing the first three integers:
360345
361- >>> import pyarrow
362- >>> import vortex
363346 >>> vortex.array([1, 2, 3]).to_arrow_array()
364347 <pyarrow.lib.Int64Array object at ...>
365348 [
0 commit comments