graphrag
graphrag copied to clipboard
Update indexer_adapters.py
Update the lines 71 and 72 before: entity_df["community"] = entity_df["community"].fillna(-1) entity_df["community"] = entity_df["community"].astype(int)
after: entity_df.loc[:, "community"] = entity_df["community"].fillna(-1) entity_df.loc[:, "community"] = entity_df["community"].astype(int)
Description
[Provide a brief description of the changes made in this pull request.]
Related Issues
[Reference any related issues or tasks that this pull request addresses.]
Proposed Changes
[List the specific changes made in this pull request.]
Checklist
- [x] I have tested these changes locally.
- [x] I have reviewed the code changes.
- [x] I have updated the documentation (if necessary).
- [x] I have added appropriate unit tests (if applicable).
Additional Notes
[Add any additional notes or context that may be helpful for the reviewer(s).]