crsp outstanding share adjusted pandas code example
Example 1: calculate market value crsp pandas
CRSP['market_value'] = (CRSP['PRC']/CRSP['CFACPR'])*(CRSP['SHROUT']*CRSP['CFACSHR'])
Example 2: adjusted price in crsp pandas
CRSP['PRC_adjusted'] = CRSP['PRC'] / CRSP['CFACPR']