Skip to content

Commit 51f2cec

Browse files
committed
One example should be enough
As the 2nd example was not using the function in a different way, there is no real need for it. If it's worth having the example with the `range()`, `append` etc., we should make it the only one (and also make it valid Python 2.7 syntax, i.e. no f-strings).
1 parent 6b641bb commit 51f2cec

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/imcflibs/imagej/misc.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -486,19 +486,6 @@ def write_ordereddict_to_csv(out_file, content):
486486
1;Sample A;42.5
487487
2;Sample B;37.2
488488
489-
>>> results = []
490-
>>> for i in range(1, 3):
491-
... results.append(OrderedDict([('id', i), ('name', f'Sample {chr(64+i)}'), ('value', 30 + i*7.5)]))
492-
>>> write_ordereddict_to_csv('results.csv', results)
493-
494-
The resulting CSV file will have the following content:
495-
496-
497-
id;name;value
498-
1;Sample A;37.5
499-
2;Sample B;45.0
500-
3;Sample C;52.5
501-
502489
Notes
503490
-----
504491
- Uses the semicolon charachter (`;`) as delimiter.

0 commit comments

Comments
 (0)