Skip to content

Commit

Permalink
chore: fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Dec 29, 2020
1 parent c3b0af6 commit d5f54f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/basic_usage_python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,17 @@ following columns:

.. code-block:: pycon
>>> import pandas as pd
>>> def load_cq(path):
>>> return (pd
>>> .read_csv(path)
>>> .rename(columns={'Cq': 'row'})
>>> .melt(
>>> id_vars=['row'],
>>> var_name='col',
>>> value_name='Cq',
>>> )
>>> )
... return (pd
... .read_csv(path)
... .rename(columns={'Cq': 'row'})
... .melt(
... id_vars=['row'],
... var_name='col',
... value_name='Cq',
... )
... )
>>> data = load_cq('std_curve.csv')
>>> data
row col Cq
Expand Down
1 change: 1 addition & 0 deletions docs/std_curve.csv

0 comments on commit d5f54f3

Please sign in to comment.