File tree 3 files changed +21
-3
lines changed
3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
158
158
pandas.api.extensions.ExtensionArray.shape \
159
159
pandas.api.extensions.ExtensionArray.tolist \
160
160
pandas.DataFrame.columns \
161
- pandas.DataFrame.backfill \
162
161
pandas.DataFrame.ffill \
163
162
pandas.DataFrame.pad \
164
163
pandas.DataFrame.swapaxes \
165
- pandas.DataFrame.attrs \
166
164
pandas.DataFrame.plot \
167
165
pandas.DataFrame.to_gbq \
168
- pandas.DataFrame.style \
169
166
pandas.DataFrame.__dataframe__
170
167
RET=$(( $RET + $? )) ; echo $MSG " DONE"
171
168
Original file line number Diff line number Diff line change @@ -1297,6 +1297,14 @@ def style(self) -> Styler:
1297
1297
--------
1298
1298
io.formats.style.Styler : Helps style a DataFrame or Series according to the
1299
1299
data with HTML and CSS.
1300
+
1301
+ Examples
1302
+ --------
1303
+ >>> df = pd.DataFrame({'A': [1, 2, 3]})
1304
+ >>> df.style # doctest: +SKIP
1305
+
1306
+ Please see
1307
+ `Table Visualization <../../user_guide/style.ipynb>`_ for more examples.
1300
1308
"""
1301
1309
from pandas .io .formats .style import Styler
1302
1310
Original file line number Diff line number Diff line change @@ -367,10 +367,19 @@ def attrs(self) -> dict[Hashable, Any]:
367
367
368
368
Examples
369
369
--------
370
+ For Series:
371
+
370
372
>>> ser = pd.Series([1, 2, 3])
371
373
>>> ser.attrs = {"A": [10, 20, 30]}
372
374
>>> ser.attrs
373
375
{'A': [10, 20, 30]}
376
+
377
+ For DataFrame:
378
+
379
+ >>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
380
+ >>> df.attrs = {"A": [10, 20, 30]}
381
+ >>> df.attrs
382
+ {'A': [10, 20, 30]}
374
383
"""
375
384
if self ._attrs is None :
376
385
self ._attrs = {}
@@ -7500,6 +7509,10 @@ def backfill(
7500
7509
-------
7501
7510
{klass} or None
7502
7511
Object with missing values filled or None if ``inplace=True``.
7512
+
7513
+ Examples
7514
+ --------
7515
+ Please see examples for :meth:`DataFrame.bfill`.
7503
7516
"""
7504
7517
warnings .warn (
7505
7518
"DataFrame.backfill/Series.backfill is deprecated. Use "
You can’t perform that action at this time.
0 commit comments