Jakub Zgrzebnicki
08/17/2023, 9:12 AMRasmus Steiniche
08/17/2023, 10:26 AMBennett Norman
08/17/2023, 8:32 PMStefan Adelbert
08/18/2023, 1:55 AMdagster_pandas
to create a data type which does validation, like ensuring that a column exists, that they are correctly typed and that certain constraints are met (like max length of strings). This is really useful when preparing data for insertion into databases with strict schemas.
I wouldn't mind getting more structured about that though, particularly for ops that will be reused, so I'm keen to hear other opinions.Jonathan Neo
08/18/2023, 8:49 AMpd.testing.assert_frame_equal(left=df1, right=df2, check_dtype=True, ...)
. If I want to just validate column names and data types, I can just drop all rows in the dataframe, but keep the shape the same. Looks like you get a lot more functionality with pandera.Stefan Adelbert
08/28/2023, 12:22 AMRasmus Steiniche
08/28/2023, 12:44 PM