Skip to content

Commit b099f87

Browse files
committed
doctest stable api
1 parent 2592495 commit b099f87

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

narwhals/dataframe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def to_native(self: Self) -> DataFrameT:
513513
│ 2 ┆ 7.0 ┆ b │
514514
│ 3 ┆ 8.0 ┆ c │
515515
└─────┴─────┴─────┘
516-
>>> nw.from_native(df_pa).to_native()
516+
>>> nw.from_native(df_pa).to_native() # doctest:+SKIP
517517
pyarrow.Table
518518
foo: int64
519519
bar: double

narwhals/stable/v1/__init__.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,12 @@ def to_native(self: Self) -> IntoDataFrameT:
345345
346346
Calling `to_native` on a Narwhals DataFrame returns the native object:
347347
348-
>>> nw.from_native(df_pd).to_native()
348+
>>> nw.from_native(df_pd).to_native() # doctest:+SKIP
349349
foo bar ham
350350
0 1 6.0 a
351351
1 2 7.0 b
352352
2 3 8.0 c
353-
>>> nw.from_native(df_pl).to_native()
353+
>>> nw.from_native(df_pl).to_native() # doctest:+SKIP
354354
shape: (3, 3)
355355
┌─────┬─────┬─────┐
356356
│ foo ┆ bar ┆ ham │
@@ -361,7 +361,7 @@ def to_native(self: Self) -> IntoDataFrameT:
361361
│ 2 ┆ 7.0 ┆ b │
362362
│ 3 ┆ 8.0 ┆ c │
363363
└─────┴─────┴─────┘
364-
>>> nw.from_native(df_pa).to_native()
364+
>>> nw.from_native(df_pa).to_native() # doctest:+SKIP
365365
pyarrow.Table
366366
foo: int64
367367
bar: double
@@ -449,12 +449,12 @@ def to_native(self: Self) -> IntoFrameT:
449449
450450
Calling `to_native` on a Narwhals DataFrame returns the native object:
451451
452-
>>> nw.from_native(df_pd).lazy().to_native()
452+
>>> nw.from_native(df_pd).lazy().to_native() # doctest:+SKIP
453453
foo bar ham
454454
0 1 6.0 a
455455
1 2 7.0 b
456456
2 3 8.0 c
457-
>>> nw.from_native(df_pl).to_native().collect()
457+
>>> nw.from_native(df_pl).to_native().collect() # doctest:+SKIP
458458
shape: (3, 3)
459459
┌─────┬─────┬─────┐
460460
│ foo ┆ bar ┆ ham │
@@ -609,12 +609,12 @@ def to_native(self: Self) -> Any:
609609
610610
We can then pass either pandas or Polars to `func`:
611611
612-
>>> func(s_pd)
612+
>>> func(s_pd) # doctest:+SKIP
613613
0 1
614614
1 2
615615
2 3
616616
dtype: int64
617-
>>> func(s_pl) # doctest: +NORMALIZE_WHITESPACE
617+
>>> func(s_pl) # doctest:+SKIP
618618
shape: (3,)
619619
Series: '' [i64]
620620
[

0 commit comments

Comments
 (0)