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 c68e70f commit 7a361edCopy full SHA for 7a361ed
pandas/core/generic.py
@@ -5140,7 +5140,7 @@ def pipe(self, func, *args, **kwargs):
5140
5141
Examples
5142
--------
5143
- >>> df = pd.DataFrame({{'A': range(3), 'B': range(1, 4)}})
+ >>> df = pd.DataFrame(dict(A=range(3), B=range(1, 4)))
5144
>>> df
5145
A B
5146
0 0 1
@@ -7204,11 +7204,11 @@ def isnull(self: FrameOrSeries) -> FrameOrSeries:
7204
7205
Show which entries in a DataFrame are not NA.
7206
7207
- >>> df = pd.DataFrame({{'age': [5, 6, np.NaN],
7208
- ... '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'),
7209
... pd.Timestamp('1940-04-25')],
7210
- ... 'name': ['Alfred', 'Batman', ''],
7211
- ... 'toy': [None, 'Batmobile', 'Joker']}})
+ ... name=['Alfred', 'Batman', ''],
+ ... toy=[None, 'Batmobile', 'Joker']))
7212
7213
age born name toy
7214
0 5.0 NaT Alfred None
0 commit comments