market capitalisation formula code example
Example: calculate market capitalization crsp
CRSP['market_cap'] = (CRSP['PRC']/CRSP['CFACPR'])*(CRSP['SHROUT']*CRSP['CFACSHR'])
CRSP['market_cap'] = (CRSP['PRC']/CRSP['CFACPR'])*(CRSP['SHROUT']*CRSP['CFACSHR'])