An SFrame is Turi Create’s main data structure for storing tabular data. Its rows and columns can represent records and features, such as houses and their prices. section 3.5
data = tc.SFrame('Hyderabad.csv')
Load the Hyderabad housing data from a CSV file into an SFrame. section 3.5
Table 3.3 The first five rows and seven columns of the Hyderabad housing prices dataset (view table figure)
| Price |
Area |
No. of Bedrooms |
Resale |
MaintenanceStaff |
Gymnasium |
SwimmingPool |
| 30000000 |
3340 |
4 |
0 |
1 |
1 |
1 |
| 7888000 |
1045 |
2 |
0 |
0 |
1 |
1 |
| 4866000 |
1179 |
2 |
0 |
0 |
1 |
1 |
| 8358000 |
1675 |
3 |
0 |
0 |
0 |
0 |
| 6845000 |
1670 |
3 |
0 |
1 |
1 |
1 |
Sample housing records show how house details are organized into rows and feature columns. section 3.5
SFrames can also be created from a dictionary of columns, as with the small dataset used to train a perceptron classifier. section 5.4
