False warning: "Unexpected Argument" when using the pandas package.

I am using PyCharm 2020.2.3 (Community Edition) and pandas 1.1.3

When I'm using pandas.DataFrame.drop_duplicates after pandas.concat and pandas.DataFrame.sort_values I'm getting an false warning of "Unexpected Argument".

See an example of code:

import pandas as pd


def main() -> None:
    df = pd.concat(objs=[])
    df = df.sort_values(by=[])
    df = df.drop_duplicates(subset=[])


if __name__ == '__main__':
    main()

Upload id: 2020_10_25_Df62vHDTdCnM8R2R (file: bug.txt)

Thanks!

1 comment
Comment actions Permalink

Hello, 

 

Could you please provide me with a working example? The attached code  execution fails. 

 

Thank you! 

0

Please sign in to leave a comment.