pandas == condition
fails
environment
- magic 07.2
- mojo 25.2.0 (26172dfe)
- pandas 2.2.3
pandas.mojo
from python import Python
def main():
pd = Python.import_module("pandas")
data = Python.dict()
data['col1'] = [1,2,3]
df = pd.DataFrame(data)
res = df[df['col1'] >= 2]
print(res)
This works correctly.
But if the condition is
res = df[df['col1'] == 2]
this throws exception :
Unhandled exception caught during execution: False
mojo: error: execution exited with a non-zero result: 1
or
Unhandled exception caught during execution: <cyfunction item_from_zerodim at 0x7f50ea1cdf20> returned a result with an exception set
mojo: error: execution exited with a non-zero result: 1
Is it a known problem?
Is it a syntax problem?