Datasets:
thaina.saraiva commited on
Commit ·
23378b2
1
Parent(s): 7d4b475
add some basic analysis
Browse files
example/download_dataset.py
CHANGED
|
@@ -13,17 +13,19 @@ topology = load_dataset('CelfAI/COOPER','topology')
|
|
| 13 |
topology_data = topology['main'].to_pandas()
|
| 14 |
|
| 15 |
|
| 16 |
-
#### Join Measurements by cell and Topology ###
|
| 17 |
-
all_data = pd.merge(measurements_by_cell_data, topology_data, on='LocalCellName', how='left')
|
| 18 |
-
|
| 19 |
|
| 20 |
### Performance indicators meanings ###
|
| 21 |
performance_indicators_meanings = load_dataset('CelfAI/COOPER','performance_indicators_meanings')
|
| 22 |
performance_indicators_meanings_data = performance_indicators_meanings['main'].to_pandas()
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
|
|
|
|
| 13 |
topology_data = topology['main'].to_pandas()
|
| 14 |
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
### Performance indicators meanings ###
|
| 18 |
performance_indicators_meanings = load_dataset('CelfAI/COOPER','performance_indicators_meanings')
|
| 19 |
performance_indicators_meanings_data = performance_indicators_meanings['main'].to_pandas()
|
| 20 |
|
| 21 |
+
#### Optionally Join Measurements by cell and Topology ###
|
| 22 |
+
all_data = pd.merge(measurements_by_cell_data, topology_data, on='LocalCellName', how='left')
|
| 23 |
+
pm_columns=[x for x in measurements_by_cell_data.columns.tolist() if x not in ['LocalCellName', 'datetime']]
|
| 24 |
|
| 25 |
+
mean_by_cell= measurements_by_cell_data.groupby('LocalCellName')[pm_columns].mean().reset_index()
|
| 26 |
+
min_by_cell= measurements_by_cell_data.groupby('LocalCellName')[pm_columns].min().reset_index()
|
| 27 |
|
| 28 |
+
mean_by_band= all_data.groupby('Band')[pm_columns].mean().reset_index()
|
| 29 |
+
mean_by_site= all_data.groupby('SiteLabel')[pm_columns].mean().reset_index()
|
| 30 |
|
| 31 |
|