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

pandas: Argument missing for parameter "by" #337

Closed
tekumara opened this issue Sep 8, 2020 · 1 comment
Closed

pandas: Argument missing for parameter "by" #337

tekumara opened this issue Sep 8, 2020 · 1 comment
Assignees
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version needs investigation Could be an issue - needs investigation

Comments

@tekumara
Copy link

tekumara commented Sep 8, 2020

Environment data

  • Language Server version: Pylance language server 2020.9.0 (pyright 60eb2cca)
  • OS and version: macOS
  • Python version (& distribution if applicable, e.g. Anaconda): pandas==1.1.1

Expected behaviour

No type error, as this is correct behaviour according to the pandas docs

Actual behaviour

Argument missing for parameter "by" [10,1]

Code Snippet / Additional information

import pandas as pd

arrays = [['Falcon', 'Falcon', 'Parrot', 'Parrot'],
          ['Captive', 'Wild', 'Captive', 'Wild']]
index = pd.MultiIndex.from_arrays(arrays, names=('Animal', 'Type'))
df = pd.DataFrame({'Max Speed': [390., 350., 30., 20.]},
                  index=index)
df

df.groupby(level=0).mean()
@github-actions github-actions bot added the triage label Sep 8, 2020
@judej judej added the needs investigation Could be an issue - needs investigation label Sep 8, 2020
@github-actions github-actions bot removed the triage label Sep 8, 2020
@jakebailey jakebailey added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Sep 14, 2020
@jakebailey
Copy link
Member

This issue has been fixed in version 2020.9.5, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202095-16-september-2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants