coordle/preprocessing/cord_19_data.py
def _perform_lang_detection(self, df: pd.DataFrame):
        '''Performs language detection on the body_text column of the Pandas DataFrame
        
        Args:
            df: Pandas DataFrame to process
            
        Returns:
            df: Pandas DataFrame with additional language column
        '''
        print('Performing language detection...')
        
        # Extract language
        df['language'] = df.body_text.progress_apply(self._extract_language)

        print('Done!')
        return df
Performs language detection on the body_text column of the Pandas DataFrame
        
        Args:
            df: Pandas DataFrame to process
            
        Returns:
            df: Pandas DataFrame with additional language column
        
Performs language detection on the body_text column of the Pandas DataFrame
Performs language detection on the body_text column of the Pandas DataFrame
def _perform_lang_detection(self, df: pd.DataFrame):
        print('Performing language detection...')
        df['language'] = df.body_text.progress_apply(self._extract_language)
        print('Done!')
        return df
def _perform_lang_detection ( self , df : pd . DataFrame ) : print ( 'Performing language detection...' ) df [ 'language' ] = df . body_text . progress_apply ( self . _extract_language ) print ( 'Done!' ) return df
Performs language detection on the body_text column of the Pandas DataFrame
Performs language detection on the body_text column of the Pandas DataFrame
'''Performs language detection on the body_text column of the Pandas DataFrame
        
        Args:
            df: Pandas DataFrame to process
            
        Returns:
            df: Pandas DataFrame with additional language column
        ''' # Extract language
Pandas DataFrame with additional language column
Pandas DataFrame with additional language column
df
self
df
pd.DataFrame
Pandas DataFrame to process
Pandas DataFrame to process