When learning about data visualization, it is helpful to distinguish between the following two approaches to visualization:
| Country | Area | Population |
|---|---|---|
| Russia | 17098246 | 144386830 |
| Canada | 9984670 | 38008005 |
| China | 9596961 | 1400050000 |
# Pseudocode
colors = ['blue', 'red', 'yellow']
plot = create_plot()
for row_number, row_data in enumerate(dataframe):
plot.add_point(x=row_data['Area'], y=row_data['Population'], color=colors[row_number])| Name | Miles_per_Gallon | Cylinders | Displacement | ... | Weight_in_lbs | Acceleration | Year | Origin | |
|---|---|---|---|---|---|---|---|---|---|
| 0 | chevrolet chevelle malibu | 18.0 | 8 | 307.0 | ... | 3504 | 12.0 | 1970-01-01 | USA |
| 1 | buick skylark 320 | 15.0 | 8 | 350.0 | ... | 3693 | 11.5 | 1970-01-01 | USA |
| 2 | plymouth satellite | 18.0 | 8 | 318.0 | ... | 3436 | 11.0 | 1970-01-01 | USA |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
| 403 | dodge rampage | 32.0 | 4 | 135.0 | ... | 2295 | 11.6 | 1982-01-01 | USA |
| 404 | ford ranger | 28.0 | 4 | 120.0 | ... | 2625 | 18.6 | 1982-01-01 | USA |
| 405 | chevy s-10 | 31.0 | 4 | 119.0 | ... | 2720 | 19.4 | 1982-01-01 | USA |
406 rows × 9 columns