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):