Closed neo-anderson closed 7 years ago
from plydata import (define, rename, query) df = pd.DataFrame({'n': [1,2,3]}) df >> define(y = 'n+1')
throws TypeError: unsupported operand type(s) for +: 'function' and 'int' query function has no issues with it though.
from plydata import (define, rename, query) df = pd.DataFrame({'n': [1,2,3]}) df >> query('n>1')
n is a special function. To prevent surprises, it may be worth it to make an exception in cases where the dataframe has a column named n.
n
throws TypeError: unsupported operand type(s) for +: 'function' and 'int' query function has no issues with it though.