Class03 Answer:

Write NumPy syntax which also sorts by cdate_s.

This is easy.


This script should create a NumPy Array From Pandas DataFrame of GSPC prices.
Then, it should sort the array by date-strings.


import pandas as pd
import numpy  as np

prices_df = pd.read_csv('')
prices_a  = np.array(prices_df)

# Sort the array by date string:
sorted_prices_a = np.sort(prices_a, axis=0)

# I should visualize it:


Class03 Lab About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen