We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0f8340 commit d5e445eCopy full SHA for d5e445e
doc/source/user_guide/text.rst
@@ -87,8 +87,9 @@ l. For ``StringDtype``, :ref:`string accessor methods<api.series.str>`
87
88
.. ipython:: python
89
90
- s.astype(object).str.count("a")
91
- s.astype(object).dropna().str.count("a")
+ s2 = pd.Series(["a", None, "b"], dtype="object")
+ s2.str.count("a")
92
+ s2.dropna().str.count("a")
93
94
When NA values are present, the output dtype is float64. Similarly for
95
methods returning boolean values.
0 commit comments