|
@@ -6,11 +6,11 @@
|
|
"collapsed": true
|
|
"collapsed": true
|
|
},
|
|
},
|
|
"source": [
|
|
"source": [
|
|
- "## Birth Dates In The United States\n",
|
|
|
|
|
|
+ "## Birth Dates in the United States\n",
|
|
"\n",
|
|
"\n",
|
|
- "The raw data behind the story **Some People Are Too Superstitious To Have A Baby On Friday The 13th**, which you can read [here](http://fivethirtyeight.com/features/some-people-are-too-superstitious-to-have-a-baby-on-friday-the-13th/).\n",
|
|
|
|
|
|
+ "Here is the raw data behind the story **Some People Are Too Superstitious to Have a Baby on Friday the 13th**, which you can read [here](http://fivethirtyeight.com/features/some-people-are-too-superstitious-to-have-a-baby-on-friday-the-13th/).\n",
|
|
"\n",
|
|
"\n",
|
|
- "We'll be working with the data set from the Centers for Disease Control and Prevention's National National Center for Health Statistics. The data set has the following structure:\n",
|
|
|
|
|
|
+ "We'll be working with the dataset from the Centers for Disease Control and Prevention's National National Center for Health Statistics. The dataset has the following structure:\n",
|
|
"\n",
|
|
"\n",
|
|
"- `year` - Year\n",
|
|
"- `year` - Year\n",
|
|
"- `month` - Month\n",
|
|
"- `month` - Month\n",
|
|
@@ -22,9 +22,7 @@
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"execution_count": null,
|
|
- "metadata": {
|
|
|
|
- "collapsed": false
|
|
|
|
- },
|
|
|
|
|
|
+ "metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
"f = open(\"births.csv\", 'r')\n",
|
|
"f = open(\"births.csv\", 'r')\n",
|
|
@@ -35,9 +33,7 @@
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"execution_count": null,
|
|
- "metadata": {
|
|
|
|
- "collapsed": false
|
|
|
|
- },
|
|
|
|
|
|
+ "metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
"lines_list = text.split(\"\\n\")\n",
|
|
"lines_list = text.split(\"\\n\")\n",
|
|
@@ -47,9 +43,7 @@
|
|
{
|
|
{
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"execution_count": null,
|
|
- "metadata": {
|
|
|
|
- "collapsed": false
|
|
|
|
- },
|
|
|
|
|
|
+ "metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
"data_no_header = lines_list[1:len(lines_list)]\n",
|
|
"data_no_header = lines_list[1:len(lines_list)]\n",
|
|
@@ -72,7 +66,7 @@
|
|
"metadata": {
|
|
"metadata": {
|
|
"anaconda-cloud": {},
|
|
"anaconda-cloud": {},
|
|
"kernelspec": {
|
|
"kernelspec": {
|
|
- "display_name": "Python [default]",
|
|
|
|
|
|
+ "display_name": "Python 3",
|
|
"language": "python",
|
|
"language": "python",
|
|
"name": "python3"
|
|
"name": "python3"
|
|
},
|
|
},
|
|
@@ -86,9 +80,9 @@
|
|
"name": "python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"pygments_lexer": "ipython3",
|
|
- "version": "3.4.5"
|
|
|
|
|
|
+ "version": "3.8.5"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat": 4,
|
|
- "nbformat_minor": 0
|
|
|
|
|
|
+ "nbformat_minor": 1
|
|
}
|
|
}
|