From b4f866a7624a7b119bffc81e27c6a3d75657d035 Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Sun, 10 Dec 2017 19:39:27 -0500 Subject: [PATCH] STYLE: linting issue, xref #17628 --- ci/lint.sh | 2 +- pandas/core/reshape/melt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/lint.sh b/ci/lint.sh index bec82602fa509..13caccdcb1fea 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -97,7 +97,7 @@ if [ "$LINT" ]; then # # Check the following functions: # any(), all(), sum(), max(), min(), list(), dict(), set(), frozenset(), tuple(), str.join() - grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)" * + grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)" pandas if [ $? = "0" ]; then RET=1 diff --git a/pandas/core/reshape/melt.py b/pandas/core/reshape/melt.py index 46edc0b96b7c2..d5551c6c9f297 100644 --- a/pandas/core/reshape/melt.py +++ b/pandas/core/reshape/melt.py @@ -406,7 +406,7 @@ def melt_stub(df, stub, i, j, value_vars, sep): return newdf.set_index(i + [j]) - if any([col in stubnames for col in df.columns]): + if any(col in stubnames for col in df.columns): raise ValueError("stubname can't be identical to a column name") if not is_list_like(stubnames):