diff --git a/pvlib/iotools/pvgis.py b/pvlib/iotools/pvgis.py index 3ab22c1ed8..ee16667b0f 100644 --- a/pvlib/iotools/pvgis.py +++ b/pvlib/iotools/pvgis.py @@ -410,6 +410,9 @@ def _coerce_and_roll_tmy(tmy_data, tz, year): np.roll(tmy_data, tz, axis=0), columns=tmy_data.columns, index=new_index) + # GH 2399 + new_tmy_data = \ + new_tmy_data.astype(dtype=dict(zip(tmy_data.columns, tmy_data.dtypes))) return new_tmy_data