Skip to main content
100%

Loading and Parsing geonames_cities100000.csv

✓ Published0🌍 Public
DDaniel Ribaudo
Last edited Sep 28, 2021
Created on Sep 7, 2021

This example loads the geonames_cities100000.csv dataset and displays basic metadata about it in large text: file size in kilobytes, row count, and column count. The code uses d3.csv to fetch and parse the CSV, then accesses the resulting data array and columns property to compute the statistics. It highlights the data’s attributes—city name, latitude, longitude, and population—which could support future analysis of population density or regional naming patterns.

AI-generated description

A program that loads and parses some [CSV]

Authored by: Daniel Ribaudo

This is the link to the Gist

Rehash of Gist README.md:

This dataset was taken from: Geonames for Cities

Within this dataset, city names are provided alongside their latitude, longitude, and population.

Attributes:

  • name: The name of the city. The main focus of the dataset.
  • latitude: Latitude coordinate. Position of the city can be used to determine commonality between word fragments/sounds and location. It can also be used to see densely populated regions.
  • longtide: Longitude coordinate. See latitude.
  • population: The population of the city. Can be used to see if there is any relation between large cities and their names. Also useful for seeing how densely a region is populated.

Tasks and Questions:

  • What areas around the world are the most densely populated?
  • Does population have any relationship with city name?
  • Which city-name-word sounds are most common in various regions?
MIT Licensed

Similar vizzes