Skip to main content
100%

Medical Cost Data

✓ Published0🌍 Public
Wwenleicao
Last edited Aug 30, 2019
Created on Aug 30, 2019

This example summarizes a medical cost dataset loaded from a CSV file, displaying its size in kilobytes, row count, and column count in a large text element. It uses D3 v5’s `d3.csv` to fetch and parse the data, then `d3.csvFormat` to measure the data size. The code also includes commented-out alternatives using `fetch` with `async/await` and a nested promise chain to illustrate different loading patterns.

AI-generated description

a medical cost dataset https://gist.githubusercontent.com/wenleicao/2f00bb905fb6a902830ff833ebcfdb00/raw/Medical_Cost.csv

Columns

age: age of primary beneficiary

sex: insurance contractor gender, female, male

bmi: Body mass index, providing an understanding of body, weights that are relatively high or low relative to height, objective index of body weight (kg / m ^ 2) using the ratio of height to weight, ideally 18.5 to 24.9

children: Number of children covered by health insurance / Number of dependents

smoker: Smoking

region: the beneficiary's residential area in the US, northeast, southeast, southwest, northwest.

charges: Individual medical costs billed by health insurance

MIT Licensed

Similar vizzes