executablebooks / github-activity

Simple markdown changelogs for GitHub repositories
https://github-activity.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
46 stars 11 forks source link

Deprecation warnings from pandas #91

Open RhetTbull opened 10 months ago

RhetTbull commented 10 months ago

Describe the bug

context When I run github-activity, several deprecation warnings are generated.

bug Not a bug yet as github-activity works as expected but will become some eventually.

github-activity
Using GH access token stored in `GITHUB_ACCESS_TOKEN`.
Running search query:
repo:RhetTbull/osxphotos

Found 3 items, which will take 1 pages
Found 7 items, which will take 1 pages
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:406: FutureWarning: pandas.value_counts is deprecated and will be removed in a future version. Use pd.Series(obj).value_counts() instead.
  item_commentors_counts = pd.value_counts(item_commentors)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:406: FutureWarning: value_counts with argument that is not not a Series, Index, ExtensionArray, or np.ndarray is deprecated and will raise in a future version.
  item_commentors_counts = pd.value_counts(item_commentors)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:406: FutureWarning: pandas.value_counts is deprecated and will be removed in a future version. Use pd.Series(obj).value_counts() instead.
  item_commentors_counts = pd.value_counts(item_commentors)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:406: FutureWarning: value_counts with argument that is not not a Series, Index, ExtensionArray, or np.ndarray is deprecated and will raise in a future version.
  item_commentors_counts = pd.value_counts(item_commentors)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:406: FutureWarning: pandas.value_counts is deprecated and will be removed in a future version. Use pd.Series(obj).value_counts() instead.
  item_commentors_counts = pd.value_counts(item_commentors)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:406: FutureWarning: value_counts with argument that is not not a Series, Index, ExtensionArray, or np.ndarray is deprecated and will raise in a future version.
  item_commentors_counts = pd.value_counts(item_commentors)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:413: FutureWarning: pandas.value_counts is deprecated and will be removed in a future version. Use pd.Series(obj).value_counts() instead.
  comment_contributor_counts = pd.value_counts(comment_helpers)
/Users/user/.local/pipx/venvs/github-activity/lib/python3.11/site-packages/github_activity/github_activity.py:413: FutureWarning: value_counts with argument that is not not a Series, Index, ExtensionArray, or np.ndarray is deprecated and will raise in a future version.
  comment_contributor_counts = pd.value_counts(comment_helpers)

problem This will become a problem when pandas deprecates this particular usage.

Reproduce the bug

Install github activity with Python 3.11.4 or 3.11.5 and run it on a repo.

I installed via pipx install github-activity

List your environment

macOS 13.5.1 (Intel) Python 3.11.4 (installed via port install pipx)

I couldn't figure out who to get the version of pandas installed by pipx

welcome[bot] commented 10 months ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: