Pca Analysis, Survival Analysis, Python, Finance, Business.
values and converting all columns into numeric formats df = df.dropna() df[['Close', 'Volume']] = df[[u'Closing Price ($)', u'Volume']].apply(pd.to_numeric, errors='coerce').fillna(0) # Extract features required for further computations X = df.drop(['Date'], axis=1).values # Create NumPy array X