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

Deprecation warnings from pandas #91

Open
RhetTbull opened this issue Sep 4, 2023 · 1 comment
Open

Deprecation warnings from pandas #91

RhetTbull opened this issue Sep 4, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@RhetTbull
Copy link

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

@RhetTbull RhetTbull added the bug Something isn't working label Sep 4, 2023
@welcome
Copy link

welcome bot commented Sep 4, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

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! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants