Skip to content

Commit 94e9922

Browse files
committed
lf_rssi_check.py : Indexing with multiple keys need to make single [] to double [[]]
https://stackoverflow.com/questions/60999753/pandas-future-warning-indexing-with-multiple-keys pandas-dev/pandas#23566 Signed-off-by: Chuck SmileyRekiere <[email protected]>
1 parent 729362e commit 94e9922

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py-scripts/lf_rssi_check.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1454,8 +1454,8 @@ def start(self, print_pass=False):
14541454
all_dl_ports_stations_df.to_csv(all_dl_port_stations_file_name)
14551455

14561456
# we should be able to add the values for each eid
1457-
all_dl_ports_stations_sum_df = all_dl_ports_stations_df.groupby(['Time epoch'])['Rx-Bps','Tx-Bps','Rx-Latency','Rx-Jitter',
1458-
'Ul-Rx-Goodput-bps','Ul-Rx-Rate-ll','Ul-Rx-Pkts-ll','Dl-Rx-Goodput-bps','Dl-Rx-Rate-ll','Dl-Rx-Pkts-ll'].sum()
1457+
all_dl_ports_stations_sum_df = all_dl_ports_stations_df.groupby(['Time epoch'])[['Rx-Bps','Tx-Bps','Rx-Latency','Rx-Jitter',
1458+
'Ul-Rx-Goodput-bps','Ul-Rx-Rate-ll','Ul-Rx-Pkts-ll','Dl-Rx-Goodput-bps','Dl-Rx-Rate-ll','Dl-Rx-Pkts-ll']].sum()
14591459
all_dl_ports_stations_sum_file_name = self.outfile[:-4]
14601460
all_dl_port_stations_sum_file_name = all_dl_ports_stations_sum_file_name + "-dl-all-eids-sum-per-interval.csv"
14611461

@@ -1508,8 +1508,8 @@ def start(self, print_pass=False):
15081508
all_ul_ports_stations_df.to_csv(all_ul_ports_stations_file_name)
15091509

15101510
# we add all the values based on the epoch time
1511-
all_ul_ports_stations_sum_df = all_dl_ports_stations_df.groupby(['Time epoch'])['Rx-Bps','Tx-Bps','Rx-Latency','Rx-Jitter',
1512-
'Ul-Rx-Goodput-bps','Ul-Rx-Rate-ll','Ul-Rx-Pkts-ll','Dl-Rx-Goodput-bps','Dl-Rx-Rate-ll','Dl-Rx-Pkts-ll'].sum()
1511+
all_ul_ports_stations_sum_df = all_dl_ports_stations_df.groupby(['Time epoch'])[['Rx-Bps','Tx-Bps','Rx-Latency','Rx-Jitter',
1512+
'Ul-Rx-Goodput-bps','Ul-Rx-Rate-ll','Ul-Rx-Pkts-ll','Dl-Rx-Goodput-bps','Dl-Rx-Rate-ll','Dl-Rx-Pkts-ll']].sum()
15131513
all_ul_ports_stations_sum_file_name = self.outfile[:-4]
15141514
all_ul_port_stations_sum_file_name = all_ul_ports_stations_sum_file_name + "-ul-all-eids-sum-per-interval.csv"
15151515

0 commit comments

Comments
 (0)