Who did Panama purchase the Panama Canal from?

Panama didn't purchase the Panama Canal from anyone. Possession of the Canal was changed when a treaty was made between Panama and The United States in 1999.