

def save_to_cache(self):
    data = [[d.strftime(self.cache_date_format), (t if pd.notnull(t) else None)] for (d, t) in self.tempC.iteritems()]
    with open(self.cache_filename, 'w') as f:
        json.dump(data, f)

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py CachedWeatherSourceBase.save_to_cache/original