Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b18f14c
initial commit
lettam Dec 3, 2015
a2128b5
Homework ideas added
lettam Dec 8, 2015
2a937bc
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Dec 8, 2015
0ef2d36
adding hw
lettam Dec 18, 2015
6f1823a
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Dec 19, 2015
bcf93a8
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 12, 2016
07bb5cf
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 12, 2016
c0ee604
adding files
lettam Jan 12, 2016
6681c5a
add files
lettam Jan 12, 2016
a35e8f0
add in 09 lab
lettam Jan 12, 2016
acb3c0f
add labs
lettam Jan 14, 2016
441629a
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 14, 2016
d9ad3da
save al files
lettam Jan 14, 2016
c614ee4
add lab copies
lettam Jan 14, 2016
2173f90
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 21, 2016
a534948
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 21, 2016
7b6cc80
add lab copy
lettam Jan 21, 2016
03003ef
add on 1/25/2016
lettam Jan 26, 2016
947b881
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 26, 2016
65e5b7e
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 26, 2016
7241c18
added 27/1/2016
lettam Jan 28, 2016
7189ea2
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 28, 2016
2693eb5
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Jan 28, 2016
4dd15d4
adding files
lettam Feb 1, 2016
02969af
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Feb 1, 2016
b643395
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Feb 2, 2016
c7ed334
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Feb 4, 2016
35d7b4b
upload contents
lettam Feb 9, 2016
518c577
Merge branch 'master' of https://github.com/hallr/DAT_SF_19
lettam Feb 9, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions HOmework/1 Command Line/CommandLineHw.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## command line exercises
## Ctrl C to escape a loop

## Using chipotle.tsv in the data subdirectory:
## Look at the head and the tail, and think for a minute about how the
head ../../data/chipotle.tsv
tail ../../data/chipotle.tsv

## data is structured. What do you think each column means? What do you ## think each row means? Tell me! (If you're unsure, look at more of
## the file contents.)
## Each line is an order, the name of the item, the price, and the ingredients

# How many orders do there appear to be?
wc -l ../../data/chipotle.tsv

# How many lines are in the file?
# 4623
# Which burrito is more popular, steak or chicken?
grep -i "chicken" ../../data/chipotle.tsv > countchicken.csv
grep -i "steak" ../../data/chipotle.tsv > countsteak.csv
# chicken by doing word count
wc -l countchicken.csv
wc -l countsteak.csv
# chicken is more popular

# Do chicken burritos more often have black beans or pinto beans?
grep -i "black beans" countchicken.csv > countblack.csv
grep -i "pinto beans" countchicken.csv > countpinto.csv

wc -l countblack.csv
wc -l countpinto.csv

# Make a list of all of the CSV or TSV files in the DAT7 repo (using a #single command). Think about how wildcard characters can help you with # this task.
ls ../../*/*.?sv

#Count the number of occurrences of the word 'dictionary' (regardless of case) across all files in the DAT7 repo.
grep -r "dictionary" ./../*/

Optional: Use the the command line to discover something "interesting" about the Chipotle data. The advanced commands below may be helpful to you!
20 changes: 20 additions & 0 deletions HOmework/1 Command Line/Ideas for Data Science Homework
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Ideas for Data Science Homework
1. Analyze the student body at Endgames
+ how often do they take classes?
+ how many classes do they take?
+ what percentage go on to the next level?
+ time between taking classes?

2. AirBnB data set on Kaggle

3. Walmart data on Kaggle


PROCESS
git status
git add <filename>
git commit -m "commit message"
git push -u origin master
## pointer to URL: origin is the URL
## master is the Branch name

Empty file.
Binary file added HOmework/1 Command Line/countchicken.csv
Binary file not shown.
Empty file.
Empty file added HOmework/temp.txt
Empty file.
Loading