git for Data Science Made Simple... (Hopefully)

Ken Jee · Beginner ·🛠️ AI Tools & Apps ·5y ago

Key Takeaways

This video teaches the basics of git and GitHub for data science, including workflow and version control

Full Transcript

hello everyone ken here and in this video i'll explain what git is so that hopefully you can add it into your data science repertoire if you commit to using git it can help you to push your data science projects and career prospects to the next level i'll start with an overview and then go through a process walk through i hope this video pulls you in and by the end you'll understand all of the awful puns that i just made in that intro so what is git at the most basic level git is a version control system think you know track changes in microsoft word get operates locally on your computer and lets us see what the differences are between the files that we've added to folders this allows us to revert to older versions if we make a mistake or it allows us to work on the same files as our team members and not mess anything up people often use git and github interchangeably but they aren't the same thing git is a file structure that sits on your local computer and github is the remote place where we can store the files that we're creating when working with a team it's more common to use github as a main point of reference instead of someone's local computer there are other remote repositories like bitbucket so i thought it was important to differentiate what the difference between these things are now why is git or github important version control is extremely relevant when working on large scale projects especially if you're dealing with a team for individual work git is nice because you can make changes or adjustments to code without worrying about breaking anything you can always revert back or just create a new branch to work on that's independent of the main system as a data scientist we often work with other people git allows us to do this without stepping on each other's toes we can each branch the same folder and work on it at the same time at the end we send it back and can reconcile all the changes that we made this system allows us to do three main things first we track the changes and who makes them second we limit bugs by oversight and third we manage concurrent workflows there's a bonus fourth thing that github allows us to do and that's to document our projects so others can use them in the future it's also nice when you document your projects and employers or prospective employers see them so what does a typical project workflow look like for github first we initialize the folder or clone an existing repository for this we use git init or git clone of a remote path [Music] everything that we want to put in our repository we need to stage staging is just letting the system know that we want to eventually add it to the repo strangely enough we use git add followed by the file name to stage it we can also use git add followed by period to add all of the files in the folder a handy command is git status and that lets you know what has been staged or committed or not [Music] to update our local repository we do git commit this updates the repo with the changes that we'd stage we usually do git commit dash m and then use a message saying what we changed that's just good practice [Music] again all of this is being done locally if you want to upload things to github you need to do some additional steps in this case we usually need to push the changes that we've made this is as simple as doing git push you'll often get some errors so just follow along with what the errors say and you'll be able to work your way out of it you might have to set a remote origin or do something along those lines but reading the error messages here is usually really helpful and really that's the gist of it when you're working by yourself so how do we manage working with different people there are two additional steps when working with a team first you want to make a branch separate from the main one that you'll be working on this way your changes won't impact anyone else needing to work on the code base we do this by doing git check out b and then we make up a branch name you can switch between branches by committing the changes in one and then doing git check out followed by the branch name of your choosing [Music] you do the same process of doing git add git commit and and including a message and then pushing the changes once you've made these changes you'll want to merge them back into the main branch you can do this from the command line but i find it a bit easier to just do it on github this process is called creating a pull request you show which branch you want to merge into the master and you usually tag a few other developers or your manager to review it before the changes are integrated in the pull request you can choose which versions of the code will be used and updated into the main branch after you get a pull request approved it's merged and now becomes part of the master branch account [Music] git and github are so much larger than just this simple walkthrough that i'm talking about but still i think it's important to understand a high level what's going on and why it's useful for data scientists looking to get a job github is the place to showcase your portfolio i've done quite a few project reviews and i recommend documenting your readmes well in work and in your personal projects i also use github for my project from scratch series so you can see what it looks like in practice there as well i hope this video has been informative and that i haven't butchered anything too bad as usual good luck on your data science journey and if you've made it this far into the video i'll bet you're committed to learning you

Original Description

In this video I give a high level overview of git and github for data science. I talk about what git is, why it's important, and I also go through the general workflow of a data science project using git. At the most basic level, git is a version control system. It also allows us to work on things simultaneously with our teammates without messing anything up. To be honest, it has revolutionized project management and process control. Git lets us track our changes and revert back to previous versions as well. Try watching these videos next! 5 Essential Data Science Projects for Your Portfolio: https://www.youtube.com/watch?v=BBDiadC8BvE&ab_channel=KenJee 5 Unusual Data Science Projects That Will Land You A Job: https://www.youtube.com/watch?v=d6FeV8WXPWY&ab_channel=KenJee Data Science Project From Scratch: https://www.youtube.com/playlist?list=PL2zq7klxX5ASFejJj80ob9ZAnBHdz5O1t Resources I used to learn git: Free Pro Git Ebook: https://git-scm.com/book/en/v2 Image Credit: https://www.edureka.co/blog/git-vs-github/ https://www.nobledesktop.com/learn/git/git-branches #DataScience #KenJee #Git #Github ⭕ Subscribe: https://www.youtube.com/c/kenjee1?sub_confirmation=1 🎙 Listen to My Podcast: https://www.youtube.com/c/KensNearestNeighborsPodcast 🕸 Check out My Website - https://kennethjee.com/ ✍️Sign up for My Newsletter - https://www.kennethjee.com/newsletter 📚 Books and Products I use - https://www.amazon.com/shop/kenjee (affiliate link) Partners & Affiliates 🌟 365 Data Science - Courses ( 57% Annual Discount): https://365datascience.pxf.io/P0jbBY 🌟 Interview Query - https://www.interviewquery.com/?ref=kenjee MORE DATA SCIENCE CONTENT HERE: 🐤My Twitter - https://twitter.com/KenJee_DS 👔 LinkedIn - https://www.linkedin.com/in/kenjee/ 📈 Kaggle - https://www.kaggle.com/kenjee 📑 Medium Articles - https://medium.com/@kenneth.b.jee 💻 Github - https://github.com/PlayingNumbers 🏀 My Sports Blog -https://www.playingnumbers.com My Playlists Data Science
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Ken Jee · Ken Jee · 0 of 60

← Previous Next →
1 Predicting Crypto-Currency Price Using RNN lSTM & GRU
Predicting Crypto-Currency Price Using RNN lSTM & GRU
Ken Jee
2 Predicting Season Long NBA Wins Using Multiple Linear Regression
Predicting Season Long NBA Wins Using Multiple Linear Regression
Ken Jee
3 How I Became A Data Scientist From a Business Background
How I Became A Data Scientist From a Business Background
Ken Jee
4 Should You Get A Masters in Data Science?
Should You Get A Masters in Data Science?
Ken Jee
5 How to Simulate NBA Games in Python
How to Simulate NBA Games in Python
Ken Jee
6 Demystifying Data Science Roles
Demystifying Data Science Roles
Ken Jee
7 The Best Way to Predict NBA Minutes Played
The Best Way to Predict NBA Minutes Played
Ken Jee
8 IT'S NOT TOO LATE TO LEARN CODE!
IT'S NOT TOO LATE TO LEARN CODE!
Ken Jee
9 My Top 5 Data Science Resources for 2019
My Top 5 Data Science Resources for 2019
Ken Jee
10 Watch This Before Applying to Data Science Jobs
Watch This Before Applying to Data Science Jobs
Ken Jee
11 Where YOU Should Start With Data Science Projects
Where YOU Should Start With Data Science Projects
Ken Jee
12 Welcome To My Channel | Ken Jee | Data Science
Welcome To My Channel | Ken Jee | Data Science
Ken Jee
13 Why You DON'T Want to be a WFH Data Scientist
Why You DON'T Want to be a WFH Data Scientist
Ken Jee
14 Was Captain Marvel Bad? A Sentiment Analysis of Twitter Data
Was Captain Marvel Bad? A Sentiment Analysis of Twitter Data
Ken Jee
15 Data Science, Machine Learning, and AI: What's the Difference?
Data Science, Machine Learning, and AI: What's the Difference?
Ken Jee
16 Data Science: Startup vs. Large Corporation
Data Science: Startup vs. Large Corporation
Ken Jee
17 Where to Look for Data Science Jobs
Where to Look for Data Science Jobs
Ken Jee
18 Work From Home Data Scientist: Day in the Life
Work From Home Data Scientist: Day in the Life
Ken Jee
19 Scrape Twitter Data in Python with Twitterscraper Module
Scrape Twitter Data in Python with Twitterscraper Module
Ken Jee
20 Should You Learn R for Data Science?
Should You Learn R for Data Science?
Ken Jee
21 NASA Physicist Turned Data Scientist (Tim Bowling) - KNN EP. 02
NASA Physicist Turned Data Scientist (Tim Bowling) - KNN EP. 02
Ken Jee
22 I Wish I Had Known THIS Before Starting in Data Science
I Wish I Had Known THIS Before Starting in Data Science
Ken Jee
23 What I Learned From My Three Degrees
What I Learned From My Three Degrees
Ken Jee
24 Most Data Science Hopefuls Overlook This Important Skill
Most Data Science Hopefuls Overlook This Important Skill
Ken Jee
25 Golf STATS: Strokes Gained Explained
Golf STATS: Strokes Gained Explained
Ken Jee
26 My Top 5 Data Science Internship Tips
My Top 5 Data Science Internship Tips
Ken Jee
27 How I Got My First Data Science Internship (And How You Can Land One)
How I Got My First Data Science Internship (And How You Can Land One)
Ken Jee
28 Data Science: Pros and Cons
Data Science: Pros and Cons
Ken Jee
29 Data Science Fundamentals: Data Exploration in Python (Pandas)
Data Science Fundamentals: Data Exploration in Python (Pandas)
Ken Jee
30 Data Science Fundamentals: Data Manipulation in Python (Pandas)
Data Science Fundamentals: Data Manipulation in Python (Pandas)
Ken Jee
31 What Does a Data Scientist Actually Do?
What Does a Data Scientist Actually Do?
Ken Jee
32 The Projects You Should Do To Get A Data Science Job
The Projects You Should Do To Get A Data Science Job
Ken Jee
33 Take Your Data Science Projects From Good to Great
Take Your Data Science Projects From Good to Great
Ken Jee
34 How To Get Data Science Experience (Without a Job)
How To Get Data Science Experience (Without a Job)
Ken Jee
35 Data Science Fundamentals: Data Cleaning in Python
Data Science Fundamentals: Data Cleaning in Python
Ken Jee
36 Is Data Science Right For You?
Is Data Science Right For You?
Ken Jee
37 Thank You For The Support | What's Next | Ken Jee | Data Science
Thank You For The Support | What's Next | Ken Jee | Data Science
Ken Jee
38 How To Build A Word Cloud From Scraped Data (Python)
How To Build A Word Cloud From Scraped Data (Python)
Ken Jee
39 6 Habits of Successful Data Scientists
6 Habits of Successful Data Scientists
Ken Jee
40 How Far Should the NBA 3-Point Line Actually Be?
How Far Should the NBA 3-Point Line Actually Be?
Ken Jee
41 How to Stay Productive & Motivated When Learning Data Science
How to Stay Productive & Motivated When Learning Data Science
Ken Jee
42 Why is Balance Important in Data Science?
Why is Balance Important in Data Science?
Ken Jee
43 By The Numbers: Where Should The NBA Put a 4 Point Line?
By The Numbers: Where Should The NBA Put a 4 Point Line?
Ken Jee
44 Why Selling Is An Important Data Science Skill
Why Selling Is An Important Data Science Skill
Ken Jee
45 Applying Data Science To My YouTube Data: My Surprising Findings
Applying Data Science To My YouTube Data: My Surprising Findings
Ken Jee
46 9 Ways You Can Make Extra Income as a Data Scientist
9 Ways You Can Make Extra Income as a Data Scientist
Ken Jee
47 Sports Analytics 101: The Pythagorean Theorem of Sports
Sports Analytics 101: The Pythagorean Theorem of Sports
Ken Jee
48 Golf: Would You Rather Be the LONGEST or STRAIGHTEST Driver on the PGA Tour?
Golf: Would You Rather Be the LONGEST or STRAIGHTEST Driver on the PGA Tour?
Ken Jee
49 Data Science Fundamentals: Linear Regression
Data Science Fundamentals: Linear Regression
Ken Jee
50 How YOU Can Land a Sports Analytics Job
How YOU Can Land a Sports Analytics Job
Ken Jee
51 The 5 Stages of Data Science Adoption
The 5 Stages of Data Science Adoption
Ken Jee
52 Math Needed for Mastering Data Science
Math Needed for Mastering Data Science
Ken Jee
53 5 Sports Analytics Books to Get You Started
5 Sports Analytics Books to Get You Started
Ken Jee
54 3 Reasons You Should NOT Become a Data Scientist
3 Reasons You Should NOT Become a Data Scientist
Ken Jee
55 Collision Course: Sports Betting + Data Science
Collision Course: Sports Betting + Data Science
Ken Jee
56 How to Scrape NBA Data Using the nba_api Python Module
How to Scrape NBA Data Using the nba_api Python Module
Ken Jee
57 5 Data Science Resolutions for 2020
5 Data Science Resolutions for 2020
Ken Jee
58 The Data Science Interview: What to Expect
The Data Science Interview: What to Expect
Ken Jee
59 The 9 Books That Changed My Perspective in 2019
The 9 Books That Changed My Perspective in 2019
Ken Jee
60 Questions You Should Ask Your Data Science Interviewers
Questions You Should Ask Your Data Science Interviewers
Ken Jee

Related Reads

📰
I Used AI Every Day for 30 Days — Here’s What Happened
Learn how using AI daily for 30 days can boost productivity and workflow efficiency, and discover the benefits and downsides of AI integration
Medium · AI
📰
Building Custom Prompts: Crafting Instructions for Your Specific Patent Art Area
Learn to craft custom prompts for your specific patent art area using AI, applying the principle of specificity to achieve better results
Dev.to AI
📰
About Ebuhu
Explore Ebuhu, a website about AI, programming, and web development, to enhance your skills in these areas.
Medium · AI
📰
Why AI Makes Legacy Modernization More Feasible But Not More Automatic
AI makes legacy modernization more feasible by reducing the initial cost, but still requires human effort and strategy
Forbes Innovation
Up next
Finding the Best Mission Control UI for AI Agents
Tech Friend AJ
Watch →