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 4ee1248 commit fa489c9Copy full SHA for fa489c9
pandas/core/generic.py
@@ -5144,7 +5144,7 @@ def pipe(self, func, *args, **kwargs):
5144
5145
Examples
5146
--------
5147
- >>> df = pd.DataFrame({{'A': range(3), 'B': range(1, 4)}})
+ >>> df = pd.DataFrame(dict(A=range(3), B=range(1, 4)))
5148
>>> df
5149
A B
5150
0 0 1
@@ -7213,11 +7213,11 @@ def isnull(self: FrameOrSeries) -> FrameOrSeries:
7213
7214
Show which entries in a DataFrame are not NA.
7215
7216
- >>> df = pd.DataFrame({{'age': [5, 6, np.NaN],
7217
- ... 'born': [pd.NaT, pd.Timestamp('1939-05-27'),
+ >>> df = pd.DataFrame(dict(age=[5, 6, np.NaN],
+ ... born=[pd.NaT, pd.Timestamp('1939-05-27'),
7218
... pd.Timestamp('1940-04-25')],
7219
- ... 'name': ['Alfred', 'Batman', ''],
7220
- ... 'toy': [None, 'Batmobile', 'Joker']}})
+ ... name=['Alfred', 'Batman', ''],
+ ... toy=[None, 'Batmobile', 'Joker']))
7221
7222
age born name toy
7223
0 5.0 NaT Alfred None
0 commit comments