BUG: Unsupported operations · Issue #55091 · pandas-dev/pandas (original) (raw)
Pandas version checks
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the latest version of pandas.
- I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd import numpy as np
matrix = np.random.randint(1, 3, size=(100, 5)) c = ["a", "b", "c", "d", "e"] df = pd.DataFrame(matrix, columns=c) transformed_df = df.eval("b_atan = arctan(b)") transformed_df = transformed_df.drop(["b"], axis=1) restored_df = transformed_df.eval("b = tan(b_atan)")
Issue Description
While running the example, I have getting the following exception:
ValueError: "tan" is not a supported function
Why "tan" is not supported if "arctan" is supported?
Where I can check the list of all supported mathematical functions?
Expected Behavior
"tan" function will be supported
Installed Versions
INSTALLED VERSIONS
commit : ca60aab
python : 3.9.16.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.22621
machine : AMD64
processor : Intel64 Family 6 Model 183 Stepping 1, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Russian_Ukraine.1251
pandas : 1.4.4
numpy : 1.23.5
pytz : 2023.3
dateutil : 2.8.2
setuptools : 67.8.0
pip : 23.1.2
Cython : None
pytest : 7.1.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : 1.0.3
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.5.0
pandas_datareader: None
bs4 : 4.12.2
bottleneck : None
brotli : None
fastparquet : None
fsspec : None
gcsfs : None
markupsafe : 2.1.3
matplotlib : 3.5.3
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.9.3
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
zstandard : None