MCPcopy
hub / github.com/pandas-dev/pandas / maybe_expression

Function maybe_expression

pandas/core/computation/pytables.py:674–681  ·  view source on GitHub ↗

loose checking if s is a pytables-acceptable expression

(s)

Source from the content-addressed store, hash-verified

672
673
674def maybe_expression(s) -> bool:
675 """loose checking if s is a pytables-acceptable expression"""
676 if not isinstance(s, str):
677 return False
678 operations = PyTablesExprVisitor.binary_ops + PyTablesExprVisitor.unary_ops + ("=",)
679
680 # make sure we have an op at least
681 return any(op in s for op in operations)

Callers 1

_ensure_termFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected