File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
268
268
269
269
# Individual files
270
270
271
+ MSG=' Doctests accessor.py' ; echo $MSG
272
+ pytest -q --doctest-modules pandas/core/accessor.py
273
+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
274
+
271
275
MSG=' Doctests base.py' ; echo $MSG
272
276
pytest -q --doctest-modules pandas/core/base.py
273
277
RET=$(( $RET + $? )) ; echo $MSG " DONE"
Original file line number Diff line number Diff line change @@ -257,12 +257,13 @@ def plot(self):
257
257
258
258
Back in an interactive IPython session:
259
259
260
- >>> ds = pd.DataFrame({{'longitude': np.linspace(0, 10),
261
- ... 'latitude': np.linspace(0, 20)}})
262
- >>> ds.geo.center
263
- (5.0, 10.0)
264
- >>> ds.geo.plot()
265
- # plots data on a map
260
+ .. code-block:: ipython
261
+
262
+ In [1]: ds = pd.DataFrame({{"longitude": np.linspace(0, 10),
263
+ ...: "latitude": np.linspace(0, 20)}})
264
+ In [2]: ds.geo.center
265
+ Out[2]: (5.0, 10.0)
266
+ In [3]: ds.geo.plot() # plots data on a map
266
267
"""
267
268
268
269
def decorator (accessor ):
You can’t perform that action at this time.
0 commit comments