Skip to content

Multimodal imaging - documentation needs updating for Pandas change #1884

Open
@mepearson

Description

@mepearson

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions