app/lists.py
def flatten(self):
        """Removes nested jsons from the dataframe."""

        # Extract member stats from nested json
        # Then store them in a flattened dataframe
        stats = json_normalize(self.df['stats'].tolist())

        # Merge the dataframes
        self.df = (self.df[['status', 'timestamp_opt', 'timestamp_signup',
                            'id', 'recent_open']].join(stats))
Removes nested jsons from the dataframe.
Removes nested jsons from the dataframe.
Removes nested jsons from the dataframe .
def flatten(self):
        stats = json_normalize(self.df['stats'].tolist())
        self.df = (self.df[['status', 'timestamp_opt', 'timestamp_signup',
                            'id', 'recent_open']].join(stats))
def flatten ( self ) : stats = json_normalize ( self . df [ 'stats' ] . tolist ( ) ) self . df = ( self . df [ [ 'status' , 'timestamp_opt' , 'timestamp_signup' , 'id' , 'recent_open' ] ] . join ( stats ) )
Removes nested jsons from the dataframe.
Removes nested jsons from the dataframe .
"""Removes nested jsons from the dataframe.""" # Extract member stats from nested json
 # Then store them in a flattened dataframe
 # Merge the dataframes

self