You can travel to Panama at anytime of the year, however, the dry season runs between mid-December and mid-April which is generally considered the best time to visit.
Temperatures remain a pretty constant high throughout the year, 30 degrees centigrade and over. On the Caribbean coast there are short heavy bursts of rain almost daily, while the Pacific coast has a pronounced wet season from May to November.