Skip to content

Commit 95f5ba4

Browse files
rockgwesm
authored andcommitted
PEP: pandas/core final round (api, matrix, sparse, cleanup of common, generic)
1 parent f0ab21f commit 95f5ba4

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

pandas/core/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
# pylint: disable=W0614,W0401,W0611
3+
# flake8: noqa
34

45
import numpy as np
56

pandas/core/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ def trans(x):
13121312
dtype = 'int64'
13131313
if issubclass(result.dtype.type, np.number):
13141314

1315-
def trans(x):
1315+
def trans(x): # noqa
13161316
return x.round()
13171317
else:
13181318
dtype = 'object'
@@ -2731,7 +2731,7 @@ def check_main():
27312731
get_option('mode.sim_interactive'))
27322732

27332733
try:
2734-
return __IPYTHON__ or check_main()
2734+
return __IPYTHON__ or check_main() # noqa
27352735
except:
27362736
return check_main()
27372737

@@ -2743,7 +2743,7 @@ def in_qtconsole():
27432743
DEPRECATED: This is no longer needed, or working, in IPython 3 and above.
27442744
"""
27452745
try:
2746-
ip = get_ipython()
2746+
ip = get_ipython() # noqa
27472747
front_end = (
27482748
ip.config.get('KernelApp', {}).get('parent_appname', "") or
27492749
ip.config.get('IPKernelApp', {}).get('parent_appname', ""))
@@ -2762,7 +2762,7 @@ def in_ipnb():
27622762
and above.
27632763
"""
27642764
try:
2765-
ip = get_ipython()
2765+
ip = get_ipython() # noqa
27662766
front_end = (
27672767
ip.config.get('KernelApp', {}).get('parent_appname', "") or
27682768
ip.config.get('IPKernelApp', {}).get('parent_appname', ""))
@@ -2778,7 +2778,7 @@ def in_ipython_frontend():
27782778
check if we're inside an an IPython zmq frontend
27792779
"""
27802780
try:
2781-
ip = get_ipython()
2781+
ip = get_ipython() # noqa
27822782
return 'zmq' in str(type(ip)).lower()
27832783
except:
27842784
pass

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,9 +2731,9 @@ def _convert(self, datetime=False, numeric=False, timedelta=False,
27312731
converted : same as input object
27322732
"""
27332733
return self._constructor(
2734-
self._data.convert(datetime=datetime, numeric=numeric,
2735-
timedelta=timedelta, coerce=coerce,
2736-
copy=copy)).__finalize__(self)
2734+
self._data.convert(datetime=datetime, numeric=numeric,
2735+
timedelta=timedelta, coerce=coerce,
2736+
copy=copy)).__finalize__(self)
27372737

27382738
# TODO: Remove in 0.18 or 2017, which ever is sooner
27392739
def convert_objects(self, convert_dates=True, convert_numeric=False,

pandas/core/matrix.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# flake8: noqa
2+
13
from pandas.core.frame import DataFrame as DataMatrix

pandas/core/sparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55

66
# pylint: disable=W0611
7+
# flake8: noqa
78

89
from pandas.sparse.series import SparseSeries
910
from pandas.sparse.frame import SparseDataFrame

0 commit comments

Comments
 (0)