Same as above, you can do: pq.Quantity(self.stfio_rec[i][j], unit)