Skip to content

Commit a013939

Browse files
committed
Remove unhelpful breaks in docstrings
1 parent ac29f25 commit a013939

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/pandas_openscm/db/netcdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def metadata_xr_to_df(
446446
0 scen_a mod_a var_a
447447
1 scen_b mod_b var_b
448448
2 scen_a mod_b var_a
449-
449+
>>>
450450
>>> # you can make the result smaller in memory is you use
451451
>>> # the `category_index` argument.
452452
>>> metadata_xr_to_df(metadata_xr, category_index=True).dtypes

src/pandas_openscm/index_manipulation.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ def unify_index_levels(
167167
MultiIndex([(1, 2, 3),
168168
(4, 5, 6)],
169169
names=['a', 'b', 'c'])
170-
170+
>>>
171171
>>> unified_b
172172
MultiIndex([( 7, 8, nan),
173173
(10, 11, nan)],
174174
names=['a', 'b', 'c'])
175-
175+
>>>
176176
>>> # Also fine if b has swapped levels
177177
>>> idx_b = pd.MultiIndex.from_tuples(
178178
... [
@@ -186,12 +186,12 @@ def unify_index_levels(
186186
MultiIndex([(1, 2, 3),
187187
(4, 5, 6)],
188188
names=['a', 'b', 'c'])
189-
189+
>>>
190190
>>> unified_b
191191
MultiIndex([( 8, 7, nan),
192192
(11, 10, nan)],
193193
names=['a', 'b', 'c'])
194-
194+
>>>
195195
>>> # Also works if a is 'inside' b
196196
>>> idx_a = pd.MultiIndex.from_tuples(
197197
... [
@@ -212,12 +212,12 @@ def unify_index_levels(
212212
MultiIndex([( 7, 8, nan),
213213
(10, 11, nan)],
214214
names=['a', 'b', 'c'])
215-
215+
>>>
216216
>>> unified_b
217217
MultiIndex([(1, 2, 3),
218218
(4, 5, 6)],
219219
names=['a', 'b', 'c'])
220-
220+
>>>
221221
>>> # But, be a bit careful, this is now sensitive to a's column order
222222
>>> idx_a = pd.MultiIndex.from_tuples(
223223
... [
@@ -239,7 +239,7 @@ def unify_index_levels(
239239
MultiIndex([( 7, 8, nan),
240240
(10, 11, nan)],
241241
names=['b', 'a', 'c'])
242-
242+
>>>
243243
>>> unified_b
244244
MultiIndex([(2, 1, 3),
245245
(5, 4, 6)],

0 commit comments

Comments
 (0)