etc/career_extractor.py
def _apply_corrections(self,
                           df_seasons: DataFrame,
                           corrections: dict)->None:
        """ apply corrections to season data inplace """
        df_seasons.set_index('Player_ID', inplace=True)
        for p_id, p_corrections in corrections.items():
            for col, val in p_corrections.items():
                df_seasons.at[p_id, col] = val

        df_seasons.reset_index(inplace=True)
 apply corrections to season data inplace 
apply corrections to season data inplace
apply corrections to season data inplace
def _apply_corrections(self,
                           df_seasons: DataFrame,
                           corrections: dict)->None:
        df_seasons.set_index('Player_ID', inplace=True)
        for p_id, p_corrections in corrections.items():
            for col, val in p_corrections.items():
                df_seasons.at[p_id, col] = val
        df_seasons.reset_index(inplace=True)
def _apply_corrections ( self , df_seasons : DataFrame , corrections : dict ) -> None : df_seasons . set_index ( 'Player_ID' , inplace = True ) for p_id , p_corrections in corrections . items ( ) : for col , val in p_corrections . items ( ) : df_seasons . at [ p_id , col ] = val df_seasons . reset_index ( inplace = True )
apply corrections to season data inplace
apply corrections to season data inplace
""" apply corrections to season data inplace """
self
df_seasons
DataFrame
corrections
dict