When you pass a list of values, the columns are return in reversed order. However, if you pass a single value, it's in correct order. See examples below:
import patito as pt
class Test(pt.Model):
a:str
b:str
Test.examples({'a':'1', 'b':'2'})
shape: (1, 2)
a | b
-- | --
str | str
"1" | "2"
This doesn't keep the order:
import patito as pt
class Test(pt.Model):
a:str
b:str
Test.examples({'a':['1'], 'b':['2']})
When you pass a list of values, the columns are return in reversed order. However, if you pass a single value, it's in correct order. See examples below:
shape: (1, 2) a | b -- | -- str | str "1" | "2"This doesn't keep the order:
shape: (1, 2) b | a -- | -- str | str "2" | "1"