I updated the load_transitions_data() function for the PlaceNetSim class. I used groupby() to split the data frame based on the values of 'venue1' instead of finding the mask each time. On my laptop these are the numbers:
Original implementation: 2:44 to run load_transition_data()
I updated the
load_transitions_data()
function for thePlaceNetSim
class. I usedgroupby()
to split the data frame based on the values of 'venue1' instead of finding the mask each time. On my laptop these are the numbers:Original implementation: 2:44 to run
load_transition_data()
groupby()
implementation: 0:33 to run