[Python] PyLance mis-identifies any Pandas series as float

Discussão em 'Python' iniciado por Stack, Janeiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    Using Pylance in VSCode and it says that pandas series - regardless of their actual contents - contains floats.

    [​IMG]

    [​IMG]

    This causes issues later when Pylance reports errors because it doesn't match type hints: [​IMG]

    Is there any way to fix this? I would prefer not to disable Pylance reporting.

    Pylance/pyright version: Pylance language server 2024.12.1 (pyright version 1.1.389, commit ce1325fc)
    pandas version: 1.1.3

    Continue reading...

Compartilhe esta Página