In [15]:
import pandas as pd
import numpy as np
from numpy import *
from pandas import Series, DataFrame, Panel,
In [8]:
file_location = 'D:/GitHub/Spot-Price-Analysis/clean-data/Price.csv'
col_names = ['region','az','time','instance','category','spotprice','demandprice','compute','memory','hdd','ssd','storage']
prices_df = pd.read_csv(file_location, names=col_names, header=None)
In [12]:
prices_df.head()
Out[12]:
In [18]:
# Do datatype conversions
prices_df.time = pd.to_datetime(prices_df.time)
prices_df_useast = prices_df[prices_df.region.isin('us-east-1')]
# http://pandas.pydata.org/pandas-docs/stable/10min.html#selection
# Convert to a time series
prices_s = Series(
In [ ]: