Re: [sympy] Support for using Symbols as Pandas indexes

2018-02-12 Thread 'Nowan Ilfideme' via sympy
Thanks, understood. I wanted to be able to use symbols like "variables" and, at some point, allow transformations via SymPy. As a terrible example: z = x * log(y) smart_func(df, z) print(df[z]) That's not terribly important, however, mostly just convenience. I submitted an issue here, maybe it

Re: [sympy] Support for using Symbols as Pandas indexes

2018-02-09 Thread Aaron Meurer
Symbol objects being callable is something that we've wanted to remove for some time, but I don't know if it will happen any time soon. https://github.com/sympy/sympy/issues/3539 I don't know of any simple workarounds. My first thought was to use a subclass, but I can't figure out how to make a

[sympy] Support for using Symbols as Pandas indexes

2018-02-09 Thread 'Nowan Ilfideme' via sympy
Hi, I ran into problems while trying to use Symbols as columns for a pandas.DataFrame *. This is probably not relevant to SymPy development itself, but rather just use. This seems to be a problem with both frameworks treating callable() objects specially: >>> import pandas as pd >>> from