Water destroys wood because it causes the fibers to swell and shrink. Heat from the sun harms wood floors because it causes the floor to become overly dry and lose its moisture. The best way to prevent warping is to make sure your floor is properly finished, is not exposed to water and is sheltered from direct sunlight. You can fix a floor if the damage is not severe. .
Place damp towels over the warped boards for at least two days.
Drill holes every 3 inches in each warped board.
Use a screwdriver to insert wood screws into the holes.
Fill in the holes with wood filler.
Refinish and reseal the wood to prevent humidity from getting into the floor.