Import data to Contact table with different types (company, person)


I would like import data to Contact table. I have data of company type and person type, too. After running the import, in my Contact table the default type for all data is company.

How can I change the type for more than one data at the same time, not only one by one? Should I do it after importing or writing some code before it?

Thanks a lot