Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from numpy.random import randn
- import pandas as pd
- df = DataFrame(randn(10, 2), columns=list('ab'))
- df.eval('a + b')
- df = DataFrame(randn(10, 2), columns=["Col 1", "Col 2"])
- df.eval('"Col 1" + "Col 2"')
- TypeError: data type "Col 1" not understood
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement