A measurements table has one row per sample ID, and a metadata table is supposed to have one row per sample ID. What check is most important before a merge on sample ID?
Remove all rows with any missing value from both tables
Sort both tables alphabetically by sample ID and merge by row position
Convert every column to text before merging
Verify that sample ID is unique in the metadata table and inspect duplicates before merging
Unlock full course notes by signing up
Data Wrangling with pandas: difficulty 3
A merge unexpectedly doubles the number of measurement rows. Give three checks or actions: one for the merge key, one for row-count diagnosis, and one for the intended table relationship.