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 3 Step 1 - Error using the Graph.describe() method #35

Open
skye0402 opened this issue Apr 30, 2024 · 1 comment
Open

Tutorial 3 Step 1 - Error using the Graph.describe() method #35

skye0402 opened this issue Apr 30, 2024 · 1 comment

Comments

@skye0402
Copy link

I'm at step 1 of the tutorial: https://developers.sap.com/tutorials/hana-cloud-python-analysis-multimodel-3.html

Error I get is:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[20], [line 1](vscode-notebook-cell:?execution_count=20&line=1)
----> [1](vscode-notebook-cell:?execution_count=20&line=1) g_storm.describe()

File [~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:196](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/gunter/llm_graph/~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:196), in Graph.describe(self)
    [194](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/gunter/llm_graph/~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:194) # Merge all to one Series
    [195](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/gunter/llm_graph/~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:195) desc_series = pd.Series(desc)
--> [196](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/gunter/llm_graph/~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:196) desc_series = pd.concat(desc_series, describer.self_loops)
    [197](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/gunter/llm_graph/~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:197) desc_series = pd.concat(desc_series, describer.degree)
    [198](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/gunter/llm_graph/~/llm_graph/.venv/lib/python3.11/site-packages/hana_ml/graph/hana_graph.py:198) desc_series = pd.concat(desc_series, describer.density)

TypeError: concat() takes 1 positional argument but 2 were given

I read that some pandas version (1.5) allowed to have 2 arguments, but not pandas 2.2.2:
https://stackoverflow.com/questions/76034809/pandas-concat-second-argument

Could it be a bug?

@raymondyao
Copy link
Contributor

Hi,

It's the known issue for pandas incompatibility. We've fixed it. The fix will be available in the next patch release.

Raymond

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

2 participants