def visit_Call(self, node):
if node.func.id not in GRP_FUNCS:
return node
else:
self.generic_visit(node)
return ast.Call(
func=node.func,
args=[
ast.ListComp(
elt=node.args[0],
generators=[
ast.comprehension(
target=ast.Name(id="datarow", ctx=ast.Store(), lineno=0, col_offset=0),
iter=ast.Name(id="data", ctx=ast.Load(), lineno=0, col_offset=0),
ifs=[],
lineno=0,
col_offset=0
)
],
lineno=0,
col_offset=0,
)
],
keywords=[],
ctx=ast.Load(),
lineno=0,
col_offset=0,
)
评论列表
文章目录