Stock Market, Python, Finance, Data Science, Money.
DataFrame “price” has a lot of NaN objects as well. NaN objects are useful when handling missing data, but it’s not in our example, because all mathematical operations including NaN values become all NaNs. This is not ok for calculating price average of companies. Thus we have to replace these NaN