Skip to content

Commit 245d21e

Browse files
committed
Fix flake8 issues pandas-dev#24235
1 parent 773bdd1 commit 245d21e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

doc/source/whatsnew/v0.17.0.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ As a result of this change, these methods are now all discoverable via tab-compl
174174
.. ipython::
175175
:verbatim:
176176

177-
In [15]: df.plot.<TAB>
177+
In [15]: df.plot.<TAB> # noqa: E225, E999
178178
df.plot.area df.plot.barh df.plot.density df.plot.hist df.plot.line df.plot.scatter
179179
df.plot.bar df.plot.box df.plot.hexbin df.plot.kde df.plot.pie
180180

@@ -747,14 +747,14 @@ Previous Behavior:
747747

748748
.. code-block:: ipython
749749
750-
In [5]: s == None
750+
In [5]: s == None # noqa: E711
751751
TypeError: Could not compare <type 'NoneType'> type with Series
752752
753753
New Behavior:
754754

755755
.. ipython:: python
756756
757-
s == None
757+
s == None # noqa: E711
758758
759759
Usually you simply want to know which values are null.
760760

@@ -769,7 +769,7 @@ Usually you simply want to know which values are null.
769769

770770
.. ipython:: python
771771
772-
None == None
772+
None == None # noqa: E711
773773
np.nan == np.nan
774774
775775
.. _whatsnew_0170.api_breaking.hdf_dropna:

doc/source/whatsnew/v0.17.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Enhancements
8484

8585
.. ipython:: python
8686
87-
df = DataFrame({'A': ['foo'] * 1000})
87+
df = DataFrame({'A': ['foo'] * 1000}) # noqa: F821
8888
df['B'] = df['A'].astype('category')
8989
9090
# shows the '+' as we have object dtypes

setup.cfg

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ exclude =
4848
doc/source/whatsnew/v0.15.0.rst
4949
doc/source/whatsnew/v0.15.1.rst
5050
doc/source/whatsnew/v0.15.2.rst
51-
doc/source/whatsnew/v0.17.0.rst
52-
doc/source/whatsnew/v0.17.1.rst
5351
doc/source/basics.rst
5452
doc/source/contributing_docstring.rst
5553
doc/source/enhancingperf.rst

0 commit comments

Comments
 (0)