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

Multimodal imaging - documentation needs updating for Pandas change #1884

Open
mepearson opened this issue Mar 22, 2024 · 0 comments
Open

Multimodal imaging - documentation needs updating for Pandas change #1884

mepearson opened this issue Mar 22, 2024 · 0 comments

Comments

@mepearson
Copy link

mepearson commented Mar 22, 2024

Note: Will submit pull request with updated document.

Error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[12], line 1
----> 1 df.drop("Representative_Docs", 1).drop("Name", 1)

TypeError: DataFrame.drop() takes from 1 to 2 positional arguments but 3 were given

Assumed reason: changes to pandas require use of keyword.

Solution: Change code to
df = topic_model.get_topic_info().drop(["Representative_Docs","Name"], axis=1)

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