Skip to content

Commit 05125a0

Browse files
committed
typos
1 parent 0a71fc2 commit 05125a0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/user_guide/reshaping.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,10 +831,10 @@ You can join this with the original to get an expanded ``DataFrame``.
831831
df[['keys']]join(df['values'].explode())
832832
833833
834-
This routine will preserve replace empty lists with ``np.nan`` and preserve scalar entries. The dtype of the resulting ``Series`` is always ``object``.
834+
This routine will replace empty lists with ``np.nan`` and preserve scalar entries. The dtype of the resulting ``Series`` is always ``object``.
835835

836836
.. ipython:: python
837837
838-
s = pd.Series([[1, 2, 3], np.nan, [], ['a', 'b']])
838+
s = pd.Series([[1, 2, 3], 'foo', [], ['a', 'b']])
839839
s
840840
s.explode()

pandas/core/series.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3654,12 +3654,12 @@ def explode(self) -> 'Series':
36543654
36553655
Examples
36563656
--------
3657-
In [1]: s = pd.Series([[1, 2, 3], np.nan, [], [3, 4]])
3657+
In [1]: s = pd.Series([[1, 2, 3], 'foo', [], [3, 4]])
36583658
36593659
In [2]: s
36603660
Out[2]:
36613661
0 [1, 2, 3]
3662-
1 NaN
3662+
1 foo
36633663
2 []
36643664
3 [3, 4]
36653665
dtype: object
@@ -3669,7 +3669,7 @@ def explode(self) -> 'Series':
36693669
0 1
36703670
0 2
36713671
0 3
3672-
1 NaN
3672+
1 foo
36733673
2 NaN
36743674
3 3
36753675
3 4

0 commit comments

Comments
 (0)