Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support date comparison in parser. #52

Open
priyankpshah opened this issue Apr 28, 2020 · 0 comments
Open

Support date comparison in parser. #52

priyankpshah opened this issue Apr 28, 2020 · 0 comments

Comments

@priyankpshah
Copy link

priyankpshah commented Apr 28, 2020

I calling following user defined functions from parser.
def conditional_res(formula,res1,res2): res = pd.Series() res = np.where(formula,res1,res2) return res df['check']=parser.parse("conditional_res(Col1==Col2,'Yes','No')").evaluate(dct)
Above code works fine with String and Number types but date type. Is there a way to add support for Date comparison?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant