Skip to content

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

Description

@skye0402

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions