update endpoint
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 613 KiB After Width: | Height: | Size: 615 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,7 +15,7 @@ from datetime import datetime, timedelta
|
||||
def get_data(emeis:list[str],scraper:DataScraper) -> list[pd.DataFrame]:
|
||||
dataframes = []
|
||||
for imei in tqdm(emeis,ascii=True,desc="gather_data"):
|
||||
resp = json.loads(scraper.get_data(imei,history_length=90)["response"].decode("utf-8"))["data"]
|
||||
resp = json.loads(scraper.get_data(imei,history_length=90)["response"].decode("utf-8"))
|
||||
df = pd.DataFrame(resp)
|
||||
df['MeasurementTime'] = pd.to_datetime(df['MeasurementTime']) #fix time date
|
||||
dataframes.append(df)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user