File tree Expand file tree Collapse file tree 3 files changed +207
-152
lines changed
01_Getting_&_Knowing_Your_Data/World Food Facts Expand file tree Collapse file tree 3 files changed +207
-152
lines changed Original file line number Diff line number Diff line change 1111 "cell_type" : " markdown" ,
1212 "metadata" : {},
1313 "source" : [
14- " ### Step 1. Go to [Kaggle]( https://www.kaggle.com/openfoodfacts/world-food-facts) "
14+ " ### Step 1. Go to https://www.kaggle.com/openfoodfacts/world-food-facts/data "
1515 ]
1616 },
1717 {
2525 "cell_type" : " markdown" ,
2626 "metadata" : {},
2727 "source" : [
28- " ### Step 3. Use the csv file and assign it to a dataframe called food"
28+ " ### Step 3. Use the tsv file and assign it to a dataframe called food"
2929 ]
3030 },
3131 {
167167 }
168168 ],
169169 "metadata" : {
170+ "anaconda-cloud" : {},
170171 "kernelspec" : {
171- "display_name" : " Python 2 " ,
172+ "display_name" : " Python [default] " ,
172173 "language" : " python" ,
173174 "name" : " python2"
174175 },
182183 "name" : " python" ,
183184 "nbconvert_exporter" : " python" ,
184185 "pygments_lexer" : " ipython2" ,
185- "version" : " 2.7.11 "
186+ "version" : " 2.7.12 "
186187 }
187188 },
188189 "nbformat" : 4 ,
Original file line number Diff line number Diff line change 2424 {
2525 "cell_type" : " code" ,
2626 "execution_count" : 2 ,
27- "metadata" : {},
27+ "metadata" : {
28+ "collapsed" : true
29+ },
2830 "outputs" : [],
2931 "source" : [
3032 " import pandas as pd\n " ,
3537 "cell_type" : " markdown" ,
3638 "metadata" : {},
3739 "source" : [
38- " ### Step 3. Use the csv file and assign it to a dataframe called food"
40+ " ### Step 3. Use the tsv file and assign it to a dataframe called food"
3941 ]
4042 },
4143 {
5557 }
5658 ],
5759 "source" : [
58- " food = pd.read_csv('~/Desktop/world-food-facts/ en.openfoodfacts.org.products.tsv', sep='\\ t')"
60+ " food = pd.read_csv('~/Desktop/en.openfoodfacts.org.products.tsv', sep='\\ t')"
5961 ]
6062 },
6163 {
6870 {
6971 "cell_type" : " code" ,
7072 "execution_count" : 5 ,
71- "metadata" : {},
73+ "metadata" : {
74+ "collapsed" : false
75+ },
7276 "outputs" : [
7377 {
7478 "data" : {
312316 {
313317 "cell_type" : " code" ,
314318 "execution_count" : 7 ,
315- "metadata" : {},
319+ "metadata" : {
320+ "collapsed" : false
321+ },
316322 "outputs" : [
317323 {
318324 "data" : {
332338 {
333339 "cell_type" : " code" ,
334340 "execution_count" : 8 ,
335- "metadata" : {},
341+ "metadata" : {
342+ "collapsed" : false
343+ },
336344 "outputs" : [
337345 {
338346 "data" : {
359367 {
360368 "cell_type" : " code" ,
361369 "execution_count" : 10 ,
362- "metadata" : {},
370+ "metadata" : {
371+ "collapsed" : false
372+ },
363373 "outputs" : [
364374 {
365375 "name" : " stdout" ,
394404 {
395405 "cell_type" : " code" ,
396406 "execution_count" : 11 ,
397- "metadata" : {},
407+ "metadata" : {
408+ "collapsed" : false
409+ },
398410 "outputs" : [
399411 {
400412 "data" : {
430442 {
431443 "cell_type" : " code" ,
432444 "execution_count" : 12 ,
433- "metadata" : {},
445+ "metadata" : {
446+ "collapsed" : false
447+ },
434448 "outputs" : [
435449 {
436450 "data" : {
457471 {
458472 "cell_type" : " code" ,
459473 "execution_count" : 15 ,
460- "metadata" : {},
474+ "metadata" : {
475+ "collapsed" : false
476+ },
461477 "outputs" : [
462478 {
463479 "data" : {
484500 {
485501 "cell_type" : " code" ,
486502 "execution_count" : 16 ,
487- "metadata" : {},
503+ "metadata" : {
504+ "collapsed" : false
505+ },
488506 "outputs" : [
489507 {
490508 "data" : {
511529 {
512530 "cell_type" : " code" ,
513531 "execution_count" : 17 ,
514- "metadata" : {},
532+ "metadata" : {
533+ "collapsed" : false
534+ },
515535 "outputs" : [
516536 {
517537 "data" : {
You can’t perform that action at this time.
0 commit comments