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

Tutorial 2 does not run #297

Open
QuantAkt opened this issue Oct 15, 2024 · 0 comments
Open

Tutorial 2 does not run #297

QuantAkt opened this issue Oct 15, 2024 · 0 comments

Comments

@QuantAkt
Copy link

Description

When running Tutorial 2: Benchmarking models, the script stops with

TypeError: DataFrame.set_axis() got an unexpected keyword argument 'inplace'

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[5], [line 1](vscode-notebook-cell:?execution_count=5&line=1)
----> [1](vscode-notebook-cell:?execution_count=5&line=1) Benchmarks.highlight(score)

File c:\Users\gg\Documents\QuantAkt\EigeneProjekte\BDLV\UAG 3\synthetic data\synthcity progs\.syncenv\Lib\site-packages\pydantic\decorator.py:40, in pydantic.decorator.validate_arguments.validate.wrapper_function()

File c:\Users\gg\Documents\QuantAkt\EigeneProjekte\BDLV\UAG 3\synthetic data\synthcity progs\.syncenv\Lib\site-packages\pydantic\decorator.py:134, in pydantic.decorator.ValidatedFunction.call()

File c:\Users\gg\Documents\QuantAkt\EigeneProjekte\BDLV\UAG 3\synthetic data\synthcity progs\.syncenv\Lib\site-packages\pydantic\decorator.py:206, in pydantic.decorator.ValidatedFunction.execute()

File c:\Users\gg\Documents\QuantAkt\EigeneProjekte\BDLV\UAG 3\synthetic data\synthcity progs\.syncenv\Lib\site-packages\synthcity\benchmark\__init__.py:362, in Benchmarks.highlight(results)
    [359](file:///C:/Users/gg/Documents/QuantAkt/EigeneProjekte/BDLV/UAG%203/synthetic%20data/synthcity%20progs/.syncenv/Lib/site-packages/synthcity/benchmark/__init__.py:359)     means.append(data)
    [361](file:///C:/Users/gg/Documents/QuantAkt/EigeneProjekte/BDLV/UAG%203/synthetic%20data/synthcity%20progs/.syncenv/Lib/site-packages/synthcity/benchmark/__init__.py:361) out = pd.concat(means, axis=1)
--> [362](file:///C:/Users/gg/Documents/QuantAkt/EigeneProjekte/BDLV/UAG%203/synthetic%20data/synthcity%20progs/.syncenv/Lib/site-packages/synthcity/benchmark/__init__.py:362) out.set_axis(results.keys(), axis=1, inplace=True)
    [364](file:///C:/Users/gg/Documents/QuantAkt/EigeneProjekte/BDLV/UAG%203/synthetic%20data/synthcity%20progs/.syncenv/Lib/site-packages/synthcity/benchmark/__init__.py:364) bad_highlight = "background-color: lightcoral;"
    [365](file:///C:/Users/gg/Documents/QuantAkt/EigeneProjekte/BDLV/UAG%203/synthetic%20data/synthcity%20progs/.syncenv/Lib/site-packages/synthcity/benchmark/__init__.py:365) ok_highlight = "background-color: green;"

TypeError: DataFrame.set_axis() got an unexpected keyword argument 'inplace'

The offending instruction in line 362 uses "inplace" and the Pandas docs tell me "Deprecated since version 1.5.0."
But In setup.cfg I find

pandas>=2.1 # min due to lifelines

How to Reproduce

  1. Install synthcity (version 0.2.11)
  2. Run Tutorial 2

System Information

python : 3.12.7
python-bits : 64
OS : Windows
OS-release : 11
Version : 10.0.22631

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