-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscatter.html
More file actions
42 lines (39 loc) · 46.7 KB
/
scatter.html
File metadata and controls
42 lines (39 loc) · 46.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
#vis.vega-embed {
width: 100%;
display: flex;
}
#vis.vega-embed details,
#vis.vega-embed details summary {
position: relative;
}
</style>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega@6"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega-lite@6.1.0"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega-embed@7"></script>
</head>
<body>
<div id="vis"></div>
<script>
(function(vegaEmbed) {
var spec = {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}}, "data": {"name": "data-cc3d012ebd820689d267f733f0edb3bb"}, "mark": {"type": "circle"}, "encoding": {"color": {"condition": {"param": "param_e02c93c7f38909e8", "field": "Major Category", "scale": {"scheme": "category20"}, "type": "nominal"}, "value": "grey"}, "opacity": {"condition": {"param": "param_e02c93c7f38909e8", "value": 1}, "value": 0.3}, "tooltip": [{"field": "Major", "type": "nominal"}, {"field": "Sleep Quality", "type": "ordinal"}], "x": {"field": "Study Time", "type": "quantitative"}, "y": {"field": "Hours of Sleep", "type": "quantitative"}}, "params": [{"name": "param_e02c93c7f38909e8", "select": {"type": "point", "fields": ["Major Category"]}, "bind": {"input": "select", "options": [null, "Interdisciplinary", "Business", "Social Sciences", "Math & Finance", "Arts & Media", "Life Sciences", "Computer Science", "Environmental & Agricultural Sciences", "Health Sciences", "Other/Unknown", "Engineering", "Data Science"], "labels": ["All", "Interdisciplinary", "Business", "Social Sciences", "Math & Finance", "Arts & Media", "Life Sciences", "Computer Science", "Environmental & Agricultural Sciences", "Health Sciences", "Other/Unknown", "Engineering", "Data Science"], "name": "Category of Major: "}}], "title": "Scatter Plot of Study Time and Hours of Sleep by Major", "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json", "datasets": {"data-cc3d012ebd820689d267f733f0edb3bb": [{"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "media arts production", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 10.0, "Major Category": "Arts & Media", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "data science and business administration", "Hours of Sleep": 6.0, "Sleep Quality": 7, "Physical Activity": 2.0, "Study Time": 5.5, "Stress Level": 6, "Heart Rate": 84.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 60.0, "Screen Time": 15.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "business administration (finance and international business)", "Hours of Sleep": 9.0, "Sleep Quality": 9, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 7, "Heart Rate": 87.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 5.0, "Major Category": "Business", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "nursing", "Hours of Sleep": 7.0, "Sleep Quality": 4, "Physical Activity": 3.0, "Study Time": 1.0, "Stress Level": 3, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 5.0, "Major Category": "Health Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Atlanta, GA, USA", "Major": "data sci", "Hours of Sleep": 7.0, "Sleep Quality": 10, "Physical Activity": 1.0, "Study Time": 2.5, "Stress Level": 7, "Heart Rate": 54.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Data Science", "City_State": "Atlanta, GA", "Country": "USA", "StateName": "Georgia", "state_id": 13.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "independent recording and production", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 0.5, "Study Time": 5.0, "Stress Level": 7, "Heart Rate": 90.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 4.0, "Major Category": "Arts & Media", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "economics", "Hours of Sleep": 10.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 1.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 6.0, "Major Category": "Social Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "business analytics", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 3.0, "Stress Level": 9, "Heart Rate": 100.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 10.0, "Major Category": "Business", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Atlanta, GA, USA", "Major": "marketing and film", "Hours of Sleep": 8.0, "Sleep Quality": 6, "Physical Activity": 1.0, "Study Time": 2.0, "Stress Level": 6, "Heart Rate": 71.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 50.0, "Screen Time": 12.0, "Major Category": "Arts & Media", "City_State": "Atlanta, GA", "Country": "USA", "StateName": "Georgia", "state_id": 13.0, "id": 840}, {"Gender": "Female", "Age": 18, "Location": "Boston, MA, USA", "Major": "politics philosophy economics and business admin", "Hours of Sleep": 7.0, "Sleep Quality": 5, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 8, "Heart Rate": 80.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 8.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "finance", "Hours of Sleep": 5.5, "Sleep Quality": 7, "Physical Activity": 2.0, "Study Time": 8.0, "Stress Level": 5, "Heart Rate": 102.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 95.0, "Screen Time": 8.0, "Major Category": "Math & Finance", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "New York, NY, USA", "Major": "nursing", "Hours of Sleep": 6.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 5, "Heart Rate": 80.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Health Sciences", "City_State": "New York, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Shanghai, China", "Major": "economic statistics", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 0.25, "Study Time": 7.0, "Stress Level": 8, "Heart Rate": 80.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 10.0, "Major Category": "Social Sciences", "City_State": "Shanghai", "Country": "China", "StateName": NaN, "state_id": null, "id": 156}, {"Gender": "Female", "Age": 19, "Location": "London, United Kingdom", "Major": "bsc psychology with education", "Hours of Sleep": 6.0, "Sleep Quality": 9, "Physical Activity": 0.5, "Study Time": 6.0, "Stress Level": 6, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 150.0, "Screen Time": 8.0, "Major Category": "Social Sciences", "City_State": "London", "Country": "United Kingdom", "StateName": NaN, "state_id": null, "id": 826}, {"Gender": "Male", "Age": 19, "Location": "Boston, MA, USA", "Major": "data science and finance", "Hours of Sleep": 8.0, "Sleep Quality": 5, "Physical Activity": 1.0, "Study Time": 2.0, "Stress Level": 7, "Heart Rate": 95.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Boston, MA, USA", "Major": "data science and economics", "Hours of Sleep": 7.0, "Sleep Quality": 4, "Physical Activity": 1.0, "Study Time": 3.0, "Stress Level": 5, "Heart Rate": 87.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 0.0, "Screen Time": 9.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "neuroscience", "Hours of Sleep": 8.0, "Sleep Quality": 6, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 3, "Heart Rate": 72.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 8.0, "Major Category": "Life Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "computer science and design", "Hours of Sleep": 9.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 6.0, "Stress Level": 7, "Heart Rate": 70.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 4.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "health science", "Hours of Sleep": 6.0, "Sleep Quality": 5, "Physical Activity": 2.0, "Study Time": 8.0, "Stress Level": 2, "Heart Rate": null, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 95.0, "Screen Time": 2.0, "Major Category": "Health Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 18, "Location": "Boston, MA, USA", "Major": "computer science and math", "Hours of Sleep": 7.0, "Sleep Quality": 5, "Physical Activity": 0.0, "Study Time": 1.0, "Stress Level": 8, "Heart Rate": 80.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 0.0, "Screen Time": 14.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 23, "Location": "Boston, MA, USA", "Major": "boston", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 3.0, "Study Time": 4.0, "Stress Level": 6, "Heart Rate": 70.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Other/Unknown", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 24, "Location": "Boston, MA, USA", "Major": "quantitative finance", "Hours of Sleep": 8.0, "Sleep Quality": 9, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 7, "Heart Rate": 90.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 95.0, "Screen Time": 6.0, "Major Category": "Math & Finance", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Chicago, IL, USA", "Major": "economics (data seince track)", "Hours of Sleep": 7.5, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 8, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 7.0, "Major Category": "Social Sciences", "City_State": "Chicago, IL", "Country": "USA", "StateName": "Illinois", "state_id": 17.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "MN, USA", "Major": "computer science", "Hours of Sleep": 7.0, "Sleep Quality": 9, "Physical Activity": 1.0, "Study Time": 7.0, "Stress Level": 5, "Heart Rate": 96.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 10.0, "Major Category": "Computer Science", "City_State": "MN", "Country": "USA", "StateName": "Minnesota", "state_id": 27.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Toronto, ON, Canada", "Major": "biodiversity and conservation biology major forest conservation major", "Hours of Sleep": 7.0, "Sleep Quality": 4, "Physical Activity": 0.5, "Study Time": 2.0, "Stress Level": 6, "Heart Rate": 72.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 85.0, "Screen Time": 11.0, "Major Category": "Environmental & Agricultural Sciences", "City_State": "Toronto, ON", "Country": "Canada", "StateName": NaN, "state_id": null, "id": 124}, {"Gender": "Female", "Age": 19, "Location": "Los Angeles, CA, USA", "Major": "computer engineering", "Hours of Sleep": 10.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Engineering", "City_State": "Los Angeles, CA", "Country": "USA", "StateName": "California", "state_id": 6.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "Boston, MA, USA", "Major": "data science and business administration", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 30.0, "Study Time": 3.5, "Stress Level": 2, "Heart Rate": 90.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 24.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Sydney, New South Wales, Australia", "Major": "digital mediaandart history", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 1.5, "Study Time": 4.5, "Stress Level": 5, "Heart Rate": 69.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 4.75, "Major Category": "Arts & Media", "City_State": "Sydney, New South Wales", "Country": "Australia", "StateName": "Nebraska", "state_id": 31.0, "id": 36}, {"Gender": "Female", "Age": 20, "Location": "Davis, CA, USA", "Major": "comp sci", "Hours of Sleep": 8.0, "Sleep Quality": 4, "Physical Activity": 28.0, "Study Time": 3.5, "Stress Level": 5, "Heart Rate": 13.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 25.0, "Screen Time": 8.0, "Major Category": "Computer Science", "City_State": "Davis, CA", "Country": "USA", "StateName": "California", "state_id": 6.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "San Diego, CA, USA", "Major": "statistics", "Hours of Sleep": 8.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 6.0, "Stress Level": 7, "Heart Rate": null, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 80.0, "Screen Time": 14.0, "Major Category": "Math & Finance", "City_State": "San Diego, CA", "Country": "USA", "StateName": "California", "state_id": 6.0, "id": 840}, {"Gender": "Female", "Age": 18, "Location": "Boston, MA, USA", "Major": "explore program", "Hours of Sleep": 6.0, "Sleep Quality": 4, "Physical Activity": 0.5, "Study Time": 2.0, "Stress Level": 7, "Heart Rate": 72.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 100.0, "Screen Time": 10.0, "Major Category": "Other/Unknown", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "Boston, MA, USA", "Major": "engineering", "Hours of Sleep": 6.0, "Sleep Quality": 1, "Physical Activity": 1.0, "Study Time": 7.0, "Stress Level": 8, "Heart Rate": 70.0, "Sleep Disorders": "Yes", "Disorder Name": NaN, "Caffeine": 40.0, "Screen Time": 15.0, "Major Category": "Engineering", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Bloomington, IN, USA", "Major": "business", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 3, "Heart Rate": 67.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Business", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Ithaca, NY, USA", "Major": "finance", "Hours of Sleep": 6.0, "Sleep Quality": 7, "Physical Activity": 16.0, "Study Time": 8.0, "Stress Level": 7, "Heart Rate": 50.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 0.0, "Screen Time": 15.0, "Major Category": "Math & Finance", "City_State": "Ithaca, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Berkeley, CA, USA", "Major": "eecs", "Hours of Sleep": 7.0, "Sleep Quality": 9, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 5, "Heart Rate": 67.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 12.0, "Major Category": "Engineering", "City_State": "Berkeley, CA", "Country": "USA", "StateName": "California", "state_id": 6.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "economics", "Hours of Sleep": 7.0, "Sleep Quality": 10, "Physical Activity": 12.0, "Study Time": 4.0, "Stress Level": 5, "Heart Rate": 140.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 12.0, "Major Category": "Social Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 18, "Location": "London, United Kingdom", "Major": "business analytics", "Hours of Sleep": 7.0, "Sleep Quality": 6, "Physical Activity": 2.0, "Study Time": 3.0, "Stress Level": 5, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 8.0, "Major Category": "Business", "City_State": "London", "Country": "United Kingdom", "StateName": NaN, "state_id": null, "id": 826}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "accounting", "Hours of Sleep": 6.0, "Sleep Quality": 5, "Physical Activity": 0.0, "Study Time": 3.0, "Stress Level": 7, "Heart Rate": 77.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Business", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Waltham, MA, USA", "Major": "biology", "Hours of Sleep": 7.0, "Sleep Quality": 6, "Physical Activity": 0.0, "Study Time": 3.0, "Stress Level": 8, "Heart Rate": 62.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 8.0, "Major Category": "Life Sciences", "City_State": "Waltham, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Oxford, Oxfordshire, United Kingdom", "Major": "economics", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 2.0, "Study Time": 3.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 2.5, "Screen Time": 6.0, "Major Category": "Social Sciences", "City_State": "Oxford, Oxfordshire", "Country": "United Kingdom", "StateName": NaN, "state_id": null, "id": 826}, {"Gender": "Male", "Age": 20, "Location": "Bloomington, IN, USA", "Major": "finance", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 2.0, "Stress Level": 6, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 50.0, "Screen Time": 8.0, "Major Category": "Math & Finance", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Staten Island, NY, USA", "Major": "business administration and management with the concentration in marketing", "Hours of Sleep": 6.0, "Sleep Quality": 6, "Physical Activity": 1.5, "Study Time": 5.0, "Stress Level": 4, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Business", "City_State": "Staten Island, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Boston, MA, USA", "Major": "finance and economics", "Hours of Sleep": 6.0, "Sleep Quality": 7, "Physical Activity": 2.0, "Study Time": 3.0, "Stress Level": 9, "Heart Rate": 70.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 5.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Boston, MA, USA", "Major": "supply chain", "Hours of Sleep": 8.0, "Sleep Quality": 4, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 6, "Heart Rate": 80.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 10.0, "Major Category": "Business", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "computer science and math", "Hours of Sleep": 7.5, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 10.0, "Stress Level": 5, "Heart Rate": 72.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 5.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "computer science and business administration", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 1.5, "Study Time": 5.0, "Stress Level": 4, "Heart Rate": 96.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 30.0, "Screen Time": 9.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "computer science and design", "Hours of Sleep": 7.0, "Sleep Quality": 5, "Physical Activity": 1.0, "Study Time": 9.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 1.0, "Screen Time": 6.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "computer science and design", "Hours of Sleep": 6.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 7, "Heart Rate": 68.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 260.0, "Screen Time": 6.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 22, "Location": "Kissimmee, FL, USA", "Major": "business", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 14.0, "Study Time": 2.0, "Stress Level": 8, "Heart Rate": 69.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 4.0, "Major Category": "Business", "City_State": "Kissimmee, FL", "Country": "USA", "StateName": "Florida", "state_id": 12.0, "id": 840}, {"Gender": "Female", "Age": 22, "Location": "Staten Island, NY, USA", "Major": "psychology", "Hours of Sleep": 7.0, "Sleep Quality": 3, "Physical Activity": 4.0, "Study Time": 3.0, "Stress Level": 7, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Social Sciences", "City_State": "Staten Island, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Staten Island, NY, USA", "Major": "interior design", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 8.0, "Stress Level": 9, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 190.0, "Screen Time": 4.0, "Major Category": "Arts & Media", "City_State": "Staten Island, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "computer science and business admin", "Hours of Sleep": 6.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 9.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 190.0, "Screen Time": 3.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Boston, MA, USA", "Major": "computer science and psychology", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 2.0, "Study Time": 5.0, "Stress Level": 1, "Heart Rate": 55.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 3.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 23, "Location": "Boston, MA, USA", "Major": "computer engineering/computer science", "Hours of Sleep": 7.5, "Sleep Quality": 6, "Physical Activity": 2.0, "Study Time": 9.0, "Stress Level": 6, "Heart Rate": 50.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 40.0, "Screen Time": 10.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "computer science", "Hours of Sleep": 7.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 8.0, "Stress Level": 7, "Heart Rate": 75.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 128.0, "Screen Time": 5.0, "Major Category": "Computer Science", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Berkeley, CA, USA", "Major": "economics", "Hours of Sleep": 6.0, "Sleep Quality": 6, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 6, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 5.0, "Major Category": "Social Sciences", "City_State": "Berkeley, CA", "Country": "USA", "StateName": "California", "state_id": 6.0, "id": 840}, {"Gender": "Female", "Age": 22, "Location": "Boston, MA, USA", "Major": "behavioral neuroscience", "Hours of Sleep": 9.0, "Sleep Quality": 5, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 9, "Heart Rate": 100.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Life Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Bloomington, IN, USA", "Major": "accounting and finance", "Hours of Sleep": 8.0, "Sleep Quality": 4, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 8, "Heart Rate": 71.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 200.0, "Screen Time": 5.0, "Major Category": "Math & Finance", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Female", "Age": 22, "Location": "Boston, MA, USA", "Major": "health science", "Hours of Sleep": 7.0, "Sleep Quality": 6, "Physical Activity": 1.0, "Study Time": 3.0, "Stress Level": 5, "Heart Rate": 70.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 160.0, "Screen Time": 5.0, "Major Category": "Health Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 22, "Location": "Boston, MA, USA", "Major": "biochemistry", "Hours of Sleep": 6.0, "Sleep Quality": 4, "Physical Activity": 2.0, "Study Time": 5.0, "Stress Level": 7, "Heart Rate": 72.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 8.0, "Major Category": "Life Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 24, "Location": "Baltimore, MD, USA", "Major": "finance", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 2.0, "Stress Level": 7, "Heart Rate": 85.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 10.0, "Major Category": "Math & Finance", "City_State": "Baltimore, MD", "Country": "USA", "StateName": "Maryland", "state_id": 24.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "business administration", "Hours of Sleep": 10.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 6, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 7.5, "Major Category": "Business", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "Boston, MA, USA", "Major": "computer science and game development", "Hours of Sleep": 8.0, "Sleep Quality": 7, "Physical Activity": 2.0, "Study Time": 2.0, "Stress Level": 5, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 14.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "New York, NY, USA", "Major": "economics", "Hours of Sleep": 6.0, "Sleep Quality": 10, "Physical Activity": 1.0, "Study Time": 3.0, "Stress Level": 8, "Heart Rate": 80.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Social Sciences", "City_State": "New York, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Seattle, WA, USA", "Major": "applied math", "Hours of Sleep": 6.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 8, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 8.5, "Major Category": "Math & Finance", "City_State": "Seattle, WA", "Country": "USA", "StateName": "Washington", "state_id": 53.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Cambridge, Cambridgeshire, United Kingdom", "Major": "biology", "Hours of Sleep": 8.0, "Sleep Quality": 10, "Physical Activity": 0.0, "Study Time": 4.0, "Stress Level": 6, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 100.0, "Screen Time": 10.0, "Major Category": "Life Sciences", "City_State": "Cambridge, Cambridgeshire", "Country": "United Kingdom", "StateName": "California", "state_id": 6.0, "id": 826}, {"Gender": "Female", "Age": 19, "Location": "Oak Hill, VA, USA", "Major": "computer science", "Hours of Sleep": 6.0, "Sleep Quality": 7, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 8, "Heart Rate": 70.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 1.0, "Screen Time": 8.0, "Major Category": "Computer Science", "City_State": "Oak Hill, VA", "Country": "USA", "StateName": "Hawaii", "state_id": 15.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Allston, MA, USA", "Major": "business", "Hours of Sleep": 9.0, "Sleep Quality": 6, "Physical Activity": 0.5, "Study Time": 10.0, "Stress Level": 8, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Business", "City_State": "Allston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Boston, MA, USA", "Major": "computer engineering", "Hours of Sleep": 8.25, "Sleep Quality": 9, "Physical Activity": 1.5, "Study Time": 5.5, "Stress Level": 3, "Heart Rate": 49.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 150.0, "Screen Time": 4.0, "Major Category": "Engineering", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Boston, MA, USA", "Major": "international business", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 12.0, "Study Time": 1.5, "Stress Level": 2, "Heart Rate": 84.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 5.5, "Major Category": "Business", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "computer science and economics", "Hours of Sleep": 7.0, "Sleep Quality": 9, "Physical Activity": 1.0, "Study Time": 3.0, "Stress Level": 7, "Heart Rate": 90.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Philadelphia, PA, USA", "Major": "history culture and law", "Hours of Sleep": 7.0, "Sleep Quality": 6, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 8, "Heart Rate": 72.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 170.0, "Screen Time": 6.0, "Major Category": "Social Sciences", "City_State": "Philadelphia, PA", "Country": "USA", "StateName": "Pennsylvania", "state_id": 42.0, "id": 840}, {"Gender": "Female", "Age": 22, "Location": "Boston, MA, USA", "Major": "computer science", "Hours of Sleep": 6.0, "Sleep Quality": 5, "Physical Activity": 1.0, "Study Time": 3.5, "Stress Level": 7, "Heart Rate": 77.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 200.0, "Screen Time": 5.5, "Major Category": "Computer Science", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "chemistry", "Hours of Sleep": 8.0, "Sleep Quality": 7, "Physical Activity": 24.0, "Study Time": 2.5, "Stress Level": 8, "Heart Rate": 90.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 40.0, "Screen Time": 5.5, "Major Category": "Life Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "Wilson, CT, USA", "Major": "turfgrass", "Hours of Sleep": 7.5, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 5, "Heart Rate": 48.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Environmental & Agricultural Sciences", "City_State": "Wilson, CT", "Country": "USA", "StateName": "Connecticut", "state_id": 9.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Columbus, OH, USA", "Major": "animal science", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 8.0, "Stress Level": 7, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 2.0, "Major Category": "Environmental & Agricultural Sciences", "City_State": "Columbus, OH", "Country": "USA", "StateName": "Ohio", "state_id": 39.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "Millersburg, OH, USA", "Major": "agronomy", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 2.0, "Study Time": 5.0, "Stress Level": 5, "Heart Rate": 55.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 4.0, "Major Category": "Environmental & Agricultural Sciences", "City_State": "Millersburg, OH", "Country": "USA", "StateName": "Ohio", "state_id": 39.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Beaver, OH, USA", "Major": "anima science", "Hours of Sleep": 7.0, "Sleep Quality": 9, "Physical Activity": 2.0, "Study Time": 5.0, "Stress Level": 6, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 5.0, "Major Category": "Environmental & Agricultural Sciences", "City_State": "Beaver, OH", "Country": "USA", "StateName": "Ohio", "state_id": 39.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Boston, MA, USA", "Major": "chemical engineering", "Hours of Sleep": 7.0, "Sleep Quality": 6, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 7, "Heart Rate": 65.0, "Sleep Disorders": "No", "Disorder Name": "insomnia", "Caffeine": 150.0, "Screen Time": 5.0, "Major Category": "Engineering", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Boston, MA, USA", "Major": "political science", "Hours of Sleep": 9.0, "Sleep Quality": 9, "Physical Activity": 1.0, "Study Time": 2.0, "Stress Level": 3, "Heart Rate": 65.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 3.0, "Major Category": "Social Sciences", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Male", "Age": 19, "Location": "Basel, Switzerland", "Major": "bachelor of arts early music", "Hours of Sleep": 8.0, "Sleep Quality": 9, "Physical Activity": 0.5, "Study Time": 13.0, "Stress Level": 1, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 2.0, "Screen Time": 9.0, "Major Category": "Arts & Media", "City_State": "Basel", "Country": "Switzerland", "StateName": NaN, "state_id": null, "id": 756}, {"Gender": "Male", "Age": 20, "Location": "London, United Kingdom", "Major": "business", "Hours of Sleep": 6.0, "Sleep Quality": 6, "Physical Activity": 2.0, "Study Time": 2.0, "Stress Level": 4, "Heart Rate": 83.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 160.0, "Screen Time": 13.0, "Major Category": "Business", "City_State": "London", "Country": "United Kingdom", "StateName": NaN, "state_id": null, "id": 826}, {"Gender": "Female", "Age": 24, "Location": "Los Angeles, CA, USA", "Major": "media production", "Hours of Sleep": 8.0, "Sleep Quality": 6, "Physical Activity": 0.0, "Study Time": 5.0, "Stress Level": 8, "Heart Rate": 77.0, "Sleep Disorders": "Yes", "Disorder Name": "insomnia", "Caffeine": 2.0, "Screen Time": 8.0, "Major Category": "Arts & Media", "City_State": "Los Angeles, CA", "Country": "USA", "StateName": "California", "state_id": 6.0, "id": 840}, {"Gender": "Female", "Age": 19, "Location": "Chicago, IL, USA", "Major": "art history", "Hours of Sleep": 8.0, "Sleep Quality": 4, "Physical Activity": 1.0, "Study Time": 7.0, "Stress Level": 7, "Heart Rate": 85.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 170.0, "Screen Time": 13.0, "Major Category": "Arts & Media", "City_State": "Chicago, IL", "Country": "USA", "StateName": "Illinois", "state_id": 17.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Lancaster, PA, USA", "Major": "architecture", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 12.0, "Study Time": 4.0, "Stress Level": 7, "Heart Rate": 68.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 4.0, "Major Category": "Arts & Media", "City_State": "Lancaster, PA", "Country": "USA", "StateName": "Pennsylvania", "state_id": 42.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Bloomington, IN, USA", "Major": "finance", "Hours of Sleep": 8.0, "Sleep Quality": 8, "Physical Activity": 1.5, "Study Time": 3.0, "Stress Level": 6, "Heart Rate": 55.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 100.0, "Screen Time": 6.0, "Major Category": "Math & Finance", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Bloomington, IN, USA", "Major": "finance", "Hours of Sleep": 6.0, "Sleep Quality": 9, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 4, "Heart Rate": 65.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 50.0, "Screen Time": 13.0, "Major Category": "Math & Finance", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Bloomington, IN, USA", "Major": "accounting", "Hours of Sleep": 8.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 4, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 100.0, "Screen Time": 8.0, "Major Category": "Business", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Bloomington, IN, USA", "Major": "supply chain", "Hours of Sleep": 8.0, "Sleep Quality": 9, "Physical Activity": 1.5, "Study Time": 7.0, "Stress Level": 5, "Heart Rate": 68.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 8.0, "Major Category": "Business", "City_State": "Bloomington, IN", "Country": "USA", "StateName": "Indiana", "state_id": 18.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Boston, MA, USA", "Major": "data science and finance", "Hours of Sleep": 5.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 2.0, "Stress Level": 6, "Heart Rate": 70.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 225.0, "Screen Time": 4.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 20, "Location": "Boston, MA, USA", "Major": "bioengineering and biochemistry", "Hours of Sleep": 7.0, "Sleep Quality": 6, "Physical Activity": 2.0, "Study Time": 8.0, "Stress Level": 8, "Heart Rate": 91.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 170.0, "Screen Time": 6.0, "Major Category": "Interdisciplinary", "City_State": "Boston, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Westborough, MA, USA", "Major": "biology", "Hours of Sleep": 7.0, "Sleep Quality": 8, "Physical Activity": 1.0, "Study Time": 3.0, "Stress Level": 5, "Heart Rate": 66.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 95.0, "Screen Time": 3.0, "Major Category": "Life Sciences", "City_State": "Westborough, MA", "Country": "USA", "StateName": "Massachusetts", "state_id": 25.0, "id": 840}, {"Gender": "Female", "Age": 22, "Location": "New York, NY, USA", "Major": "biology", "Hours of Sleep": 8.0, "Sleep Quality": 7, "Physical Activity": 1.0, "Study Time": 5.0, "Stress Level": 7, "Heart Rate": 64.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 6.0, "Major Category": "Life Sciences", "City_State": "New York, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "New York, NY, USA", "Major": "bioengineering", "Hours of Sleep": 6.0, "Sleep Quality": 4, "Physical Activity": 2.0, "Study Time": 4.0, "Stress Level": 5, "Heart Rate": 98.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 160.0, "Screen Time": 8.0, "Major Category": "Engineering", "City_State": "New York, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Male", "Age": 20, "Location": "Staten Island, NY, USA", "Major": "psychology", "Hours of Sleep": 9.0, "Sleep Quality": 9, "Physical Activity": 3.0, "Study Time": 3.0, "Stress Level": 4, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 95.0, "Screen Time": 4.0, "Major Category": "Social Sciences", "City_State": "Staten Island, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Brooklyn, NY, USA", "Major": "math", "Hours of Sleep": 6.0, "Sleep Quality": 3, "Physical Activity": 0.0, "Study Time": 5.0, "Stress Level": 8, "Heart Rate": 80.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 320.0, "Screen Time": 6.0, "Major Category": "Math & Finance", "City_State": "Brooklyn, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 21, "Location": "Brooklyn, NY, USA", "Major": "business", "Hours of Sleep": 8.0, "Sleep Quality": 7, "Physical Activity": 1.5, "Study Time": 3.0, "Stress Level": 2, "Heart Rate": 55.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 85.0, "Screen Time": 4.0, "Major Category": "Business", "City_State": "Brooklyn, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Female", "Age": 22, "Location": "Brooklyn, NY, USA", "Major": "marine biology", "Hours of Sleep": 7.0, "Sleep Quality": 5, "Physical Activity": 1.0, "Study Time": 4.0, "Stress Level": 5, "Heart Rate": 75.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 95.0, "Screen Time": 2.0, "Major Category": "Environmental & Agricultural Sciences", "City_State": "Brooklyn, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Male", "Age": 21, "Location": "Brooklyn, NY, USA", "Major": "computer science", "Hours of Sleep": 6.0, "Sleep Quality": 4, "Physical Activity": 3.0, "Study Time": 5.0, "Stress Level": 6, "Heart Rate": 60.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 0.0, "Screen Time": 7.0, "Major Category": "Computer Science", "City_State": "Brooklyn, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}, {"Gender": "Male", "Age": 22, "Location": "Staten Island, NY, USA", "Major": "nursing", "Hours of Sleep": 7.5, "Sleep Quality": 7, "Physical Activity": 2.5, "Study Time": 4.0, "Stress Level": 7, "Heart Rate": 78.0, "Sleep Disorders": "No", "Disorder Name": NaN, "Caffeine": 200.0, "Screen Time": 3.0, "Major Category": "Health Sciences", "City_State": "Staten Island, NY", "Country": "USA", "StateName": "New York", "state_id": 36.0, "id": 840}]}};
var embedOpt = {"mode": "vega-lite"};
function showError(el, error){
el.innerHTML = ('<div style="color:red;">'
+ '<p>JavaScript Error: ' + error.message + '</p>'
+ "<p>This usually means there's a typo in your chart specification. "
+ "See the javascript console for the full traceback.</p>"
+ '</div>');
throw error;
}
const el = document.getElementById('vis');
vegaEmbed("#vis", spec, embedOpt)
.catch(error => showError(el, error));
})(vegaEmbed);
</script>
</body>
</html>