File tree 1 file changed +1
-26
lines changed
1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -260,31 +260,6 @@ The following methods now also correctly output values for unobserved categories
260
260
df.groupby([" cat_1" , " cat_2" ], observed = False )[" value" ].count()
261
261
262
262
263
- Avoid iterating over ``Series.str ``
264
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
265
-
266
- Iterating over the `.str ` accessor of :class: `Series ` will now raise a
267
- `FutureWarning ` and be removed in future releases (:issue: `28277 `).
268
- Since no clear purpose of this feature could be derived, there will be
269
- no replacement.
270
-
271
- .. code-block :: ipython
272
-
273
- In [1]: s = pd.Series(["a", "ab"])
274
- In [2]: s
275
- Out[2]:
276
- 0 a
277
- 1 ab
278
- dtype: object
279
-
280
- In [3]: generator = (_ for _ in s.str)
281
- In [4]: next(generator)
282
- Out[4]:
283
- FutureWarning: Columnar iteration over characters will be deprecated in future releases.
284
- 0 a
285
- 1 a
286
- dtype: object
287
-
288
263
.. _whatsnew_1000.api_breaking.deps :
289
264
290
265
Increased minimum versions for dependencies
@@ -369,7 +344,7 @@ Other API changes
369
344
- :meth: `Series.dropna ` has dropped its ``**kwargs `` argument in favor of a single ``how `` parameter.
370
345
Supplying anything else than ``how `` to ``**kwargs `` raised a ``TypeError `` previously (:issue: `29388 `)
371
346
- When testing pandas, the new minimum required version of pytest is 5.0.1 (:issue: `29664 `)
372
- -
347
+ - :meth: ` Series.str.__iter__ ` was deprecated and will be removed in future releases ( :issue: ` 28277 `).
373
348
374
349
375
350
.. _whatsnew_1000.api.documentation :
You can’t perform that action at this time.
0 commit comments