Skip to content

DEV/CLN: Drop pandera dependency? #269

Open

Description

@NickleDave

Our using pandera to validata dataframes really adds to the number of things that get installed when you install crowsetta, largely because pandera depends on pydantic

This makes it it more likely that some change upstream will impact people that just want to use crowsetta so their own library can parse annotations, see for example kitzeslab/opensoundscape#1017 and vocalpy/vocalpy#173

I recall looking at "pure Python" libraries for validating dataframes before, I wonder if there's one we could vendor to avoid. Like typedframe maybe

Activity

  1. NickleDave commented on Jul 3, 2024

    @NickleDave
    CollaboratorAuthor

    Thinking out loud: I guess most tools are pretty consistent about how they save so it would have to be someone working with the exported annotations that corrupts the files.

    It would be good to know if anyone else had cases where pandera caught some problem with annotation files, and that was helpful. I think most of the validation errors I've gotten have been because of a mistake I made (e.g. building a simple-seq annotation file "manually" with pandas from some one-off annotation format, then trying to load it with crowsetta)

    Maybe we just need clearer error messages instead of strict validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions