Samples as stored as index and value pairs instead of dicts.
Filter out empty rows form input.
Order of samples in output is same as input order.