Hi, I have a data frame like this:
Ticker P/EP/SP/BP/FCF Dividend No. 1 NTCT 457.32 3.03 1.44 26.04 - 2 GWRE 416.06 9.80 5.33 45.62 - 3 PEGA 129.02 4.41 9.85 285.10 0.28% 4 BLKB 87.68 4.96 14.36 41.81 0.62%
First, I want to convert the values ββto columns that contain numbers (which are currently strings) for float values. So here I would have 4 middle columns that require conversion to float. Will a simple loop work with this case?
Secondly, the problem with the last column is 'Dividend' , where there is a percentage value as a row. In fact, I can convert it to decimal numbers, however I was wondering if there was a way to save%, and the values ββwould still be computed.
Any ideas for these two issues?
source share