strava_map/map.py
def _coordinates_by_type(self):
        """Processes the coordinates for use.
        """     
        if self._split:
            coords = {}
            for t in self.activity_types:
                a = self.data[self.data['type'] == t]
                c = a['coordinates'].apply(pd.Series).stack().reset_index(drop=True)
                if len(c) > 0:
                    coords[t] = c
        else:
            coords = {'All': self.data.apply(pd.Series).stack().reset_index(drop=True)}
            
        return coords
Processes the coordinates for use.
        
Processes the coordinates for use.
Processes the coordinates for use .
def _coordinates_by_type(self):
        if self._split:
            coords = {}
            for t in self.activity_types:
                a = self.data[self.data['type'] == t]
                c = a['coordinates'].apply(pd.Series).stack().reset_index(drop=True)
                if len(c) > 0:
                    coords[t] = c
        else:
            coords = {'All': self.data.apply(pd.Series).stack().reset_index(drop=True)}
        return coords
def _coordinates_by_type ( self ) : if self . _split : coords = { } for t in self . activity_types : a = self . data [ self . data [ 'type' ] == t ] c = a [ 'coordinates' ] . apply ( pd . Series ) . stack ( ) . reset_index ( drop = True ) if len ( c ) > 0 : coords [ t ] = c else : coords = { 'All' : self . data . apply ( pd . Series ) . stack ( ) . reset_index ( drop = True ) } return coords
Processes the coordinates for use.
Processes the coordinates for use .
"""Processes the coordinates for use.
        """
self