dataenforce
dataenforce copied to clipboard
Shape information
Is it possible to add shape information?
e.g.
Dataset[(10, 3), ("a": int, "b": int, "c": int)]
Wil type a dataframe with 10 rows and 3 columns
What is the use case you have in mind?
My thoughts are that it's quite easy to make a assert df.shape == (X,Y) at the beginning of a function, so having a library doing it for you doesn't add so much convenience. But maybe I'm overseeing another use?
/C