split the CSV into two separate files: one for companies and one for people, and upload them individually.
you can use actions like "Write to Other Table", "Lookup Multiple Rows in Other Table", and "Lookup Single Row in Other Table" to connect and reference data across your tables once the data is uploaded.
Hope that helps!