Skip to content

Commit

Permalink
docs(python): Add "import polars.testing" to testing docstrings (#5316)…
Browse files Browse the repository at this point in the history
… (#5318)
  • Loading branch information
ghuls authored Oct 24, 2022
1 parent d3397fa commit fba2697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py-polars/polars/testing/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def assert_frame_equal(
Examples
--------
>>> import polars as pl
>>> import polars.testing
>>> df1 = pl.DataFrame({"a": [1, 2, 3]})
>>> df2 = pl.DataFrame({"a": [2, 3, 4]})
>>> pl.testing.assert_frame_equal(df1, df2) # doctest: +SKIP
Expand Down Expand Up @@ -119,6 +121,8 @@ def assert_series_equal(
Examples
--------
>>> import polars as pl
>>> import polars.testing
>>> s1 = pl.Series([1, 2, 3])
>>> s2 = pl.Series([2, 3, 4])
>>> pl.testing.assert_series_equal(s1, s2) # doctest: +SKIP
Expand Down

0 comments on commit fba2697

Please sign in to comment.