Skip to content

Commit

Permalink
docs: Remove patch() from cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 3, 2023
1 parent 0acba50 commit 1d68d33
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions docs/cookbook/create.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ Use the `agate-sql <https://agate-sql.readthedocs.org/>`_ extension.
import agatesql
agatesql.patch()
table = agate.Table.from_sql('postgresql:///database', 'input_table')
From an Excel spreadsheet
Expand All @@ -158,8 +156,6 @@ Use the `agate-excel <https://agate-excel.readthedocs.org/>`_ extension. It supp
import agateexcel
agateexcel.patch()
table = agate.Table.from_xls('test.xls', sheet='data')
table2 = agate.Table.from_xlsx('test.xlsx', sheet='data')
Expand All @@ -173,8 +169,6 @@ DBF is the file format used to hold tabular data for ArcGIS shapefiles. `agate-d
import agatedbf
agatedbf.patch()
table = agate.Table.from_dbf('test.dbf')
From a remote file
Expand All @@ -187,8 +181,6 @@ Use the `agate-remote <https://agate-remote.readthedocs.org/>`_ extension.
import agateremote
agateremote.patch()
table = agate.Table.from_url('https://raw.githubusercontent.com/wireservice/agate/master/examples/test.csv')
agate-remote also let’s you create an Archive, which is a reference to a group of tables with a known path structure.
Expand Down
2 changes: 0 additions & 2 deletions docs/cookbook/lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ We can map the ``year`` column to its annual CPI index in one lookup call.
import agatelookup
agatelookup.patch()
join_year_cpi = table.lookup('year', 'cpi')
The return table will have now have a new column:
Expand Down
2 changes: 0 additions & 2 deletions docs/cookbook/statistics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ The `agate-stats <https://agate-stats.rtfd.org/>`_ extension adds methods for fi
import agatestats
agatestats.patch()
outliers = table.stdev_outliers('salary', deviations=3, reject=False)
By specifying :code:`reject=True` you can instead return a table including only those values **not** identified as outliers.
Expand Down

0 comments on commit 1d68d33

Please sign in to comment.