

def json(self):
    return {
        'station': self.station,
        'records': [{
            'datetime': d.strftime(d.cache_date_format),
            'tempC': (t if pd.notnull(t) else None),
        } for (d, t) in self.tempC.iteritems()],
    }

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py WeatherSourceBase.json/VarMisuse@31/38 `self`->`d`