File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -685,8 +685,8 @@ shown:
685685
686686.. code-block :: python
687687
688- import numpy as np
689- import pandas as pd
688+ import numpy as np # noqa: F401
689+ import pandas as pd # noqa: F401
690690
691691 Any other module used in the examples must be explicitly imported, one per line (as
692692recommended in :pep: `8#imports `)
Original file line number Diff line number Diff line change @@ -5350,7 +5350,6 @@ And here's the code:
53505350 import pandas as pd
53515351 import sqlite3
53525352 from numpy.random import randn
5353- from pandas.io import sql
53545353
53555354 sz = 1000000
53565355 df = pd.DataFrame({' A' : randn(sz), ' B' : [1 ] * sz})
Original file line number Diff line number Diff line change @@ -201,8 +201,9 @@ def decorator(accessor):
201201
202202.. code-block:: python
203203
204- def __init__(self, pandas_object):
205-
204+ def __init__(self, pandas_object): # noqa: E999
205+ ...
206+
206207For consistency with pandas methods, you should raise an ``AttributeError``
207208if the data passed to your accessor has an incorrect dtype.
208209
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ exclude =
3434[flake8-rst]
3535ignore =
3636 F821, # undefined name
37- F401, # imported but unused
3837 W391, # blank line at end of file [Seems to be a bug (v0.4.1)]
3938
4039
You can’t perform that action at this time.
0 commit comments