MaartenGr / MaartenGr/BERTopic
Multimodal imaging - documentation needs updating for Pandas change
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.8k
- Forks
- 920
- Avg merge
- 22h 24m
- Merged PRs (30d)
- 5
Description
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)`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the multimodal imaging documentation containing the topic-model information lookup and reproduce the reported pandas error. Update the displayed example to use the working drop syntax shown in the issue, then verify that the documentation code runs without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pandas, python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100