I try to read ec2 pricing tables with pandas. Based on documentation I expect list of DataFrames, but got one table as a list.
Code example
import pandas
link = 'http://aws.amazon.com/ec2/pricing/'
data = pandas.read_html(link)
print type(data)
print data[0]
Output
<type 'list'>
0 1 2
0 Reserved Instance Volume Discounts NaN NaN
1 Total Reserved Instances Upfront Discount Hourly Discount
2 Less than $250,000 0% 0%
3 $250,000 to $2,000,000 5% 5%
4 $2,000,000 to $5,000,000 10% 10%
5 More than $5,000,000 Contact Us Contact Us
Environment:
- Ubuntu 14.10
- python 2.7.8
- pandas 0.14.1