device intensities
This commit is contained in:
14
scripts/device_intensity.py
Normal file
14
scripts/device_intensity.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import pandas as pd
|
||||||
|
import os
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
curdir = os.getcwd()
|
||||||
|
path_delim = '/'
|
||||||
|
df = pd.read_excel(curdir + path_delim + "data/tests_28_09_2023_11_02.xlsx", sheet_name="Sheet1")
|
||||||
|
|
||||||
|
print(df.groupby(["deviceId"]).describe())
|
||||||
|
df_stats = df.groupby(["deviceId"]).describe()
|
||||||
|
|
||||||
|
writer = pd.ExcelWriter(curdir + path_delim + "data/device_intensity3.xlsx", engine = 'openpyxl')
|
||||||
|
df_stats.to_excel(writer, sheet_name = 'op')
|
||||||
|
writer.close()
|
||||||
Reference in New Issue
Block a user