Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Implement validation of list types #45

Open
JakobGM opened this issue Oct 23, 2022 · 0 comments
Open

Implement validation of list types #45

JakobGM opened this issue Oct 23, 2022 · 0 comments

Comments

@JakobGM
Copy link
Contributor

JakobGM commented Oct 23, 2022

The following model should be able to validate columns containing lists of strings for instance:

import patito as pt

class MyModel(pt.Model):
	my_column: list[str]

Used in this context:

df = pl.DataFrame({"my_column": [[1], [1,2], [1, 2, 3]]})
MyModel.validate(df)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant