Skip to content

Commit 99bb9c1

Browse files
committed
test_l3_longevity.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 94e9922 commit 99bb9c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py-scripts/test_l3_longevity.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2068,8 +2068,8 @@ def start(self, print_pass=False):
20682068
all_dl_ports_stations_df.to_csv(all_dl_port_stations_file_name)
20692069

20702070
# we should be able to add the values for each eid
2071-
all_dl_ports_stations_sum_df = all_dl_ports_stations_df.groupby(['Time epoch'])['Rx-Bps', 'Tx-Bps', 'Rx-Latency', 'Rx-Jitter',
2072-
'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()
2071+
all_dl_ports_stations_sum_df = all_dl_ports_stations_df.groupby(['Time epoch'])[['Rx-Bps', 'Tx-Bps', 'Rx-Latency', 'Rx-Jitter',
2072+
'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()
20732073
all_dl_ports_stations_sum_file_name = self.outfile[:-4]
20742074
all_dl_port_stations_sum_file_name = all_dl_ports_stations_sum_file_name + "-dl-all-eids-sum-per-interval.csv"
20752075

0 commit comments

Comments
 (0)