Tag: mixpanel

将嵌套的JSON(mixpanel API原始数据导出)转换为CSV? (理想的Python)

我已经收到来自Mixpanel API的原始数据。 我希望将其转换为CSV文件,以便我可以在Excel中操作数据。 我已经尝试过这个在线工具( http://jsfiddle.net/sturtevant/vUnF9/ ),但它似乎不处理嵌套的JSON结果。 做这个的最好方式是什么? 这里是输出示例: {"event":"Event.Name","properties":{"time":1376784014,"distinct_id":"distinctID","$app_version":"1.XX","$city":"cityName","$ios_ifa":"iosIfa","$lib_version":"XYZ","$manufacturer":"Apple","$model":"model","$os":"iPhone OS","$os_version":"XYZ","$region":"Region","$screen_height":999,"$screen_width":999,"$wifi":true,"App Version":"1.XX","BattleDuration":"99","BattleNum":"2","Episode Num":"2","PlayerVictory":"1","mp_country_code":"CODE","mp_device_model":"Model","mp_lib":"iphone"}}