Skip to content

Commit c7121a7

Browse files
committed
Fix docstring format error
1 parent cc25182 commit c7121a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/arrays/interval.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,6 @@ def repeat(self, repeats, axis=None):
10731073
Examples
10741074
--------
10751075
%(examples)s
1076-
10771076
>>> intervals.overlaps(pd.Interval(0.5, 1.5))
10781077
array([ True, True, False])
10791078
@@ -1092,8 +1091,8 @@ def repeat(self, repeats, axis=None):
10921091
@Appender(_interval_shared_docs['overlaps'] % dict(
10931092
klass='IntervalArray',
10941093
examples=textwrap.dedent("""\
1095-
>>> intervals = pd.arrays.IntervalArray.from_tuples([(0, 1), (1, 3),\
1096-
(2, 4)])
1094+
>>> data = [(0, 1), (1, 3), (2, 4)]
1095+
>>> intervals = pd.arrays.IntervalArray.from_tuples(data)
10971096
>>> intervals
10981097
<IntervalArray>
10991098
[(0, 1], (1, 3], (2, 4]]

0 commit comments

Comments
 (0)