Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Data Science, Python, Guitars

vimaloctavius vimaloctavius

💭
Data Science, Python, Guitars
View GitHub Profile
View titanic.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vimaloctavius
vimaloctavius / VirtualEnv
Created Jul 15, 2021
Virtual Environment For Python Windows
View VirtualEnv
pip install virtualenv
create a new project directory and cd to the project directory
virtualenv --python c:\python38\python.exe venv
.\venv\scripts\activate
deactivate
View DataSciencePython
df["Age"] = df["Age"]+1
#Dealing with Nan values
df.dropna(subset=["Price"],axis=0,inpace=True) #same as below. axis=1 will drop columns
df=df.dropna(subset=["Price"],axis=0) #same as above
mean = df["Losses"].mean()
df["Losses"].replace(np.nan,mean)
#Data formatting
View gist:0dc33e1337dd8619e184ce71b6ad8a98
…or create a new repository on the command line
echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/vimal739/test.git
git push -u origin main
…or push an existing repository from the command line
@vimaloctavius
vimaloctavius / GithubBasics
Last active Sep 11, 2020
Github Basics on the command line
View GithubBasics
Install git bash for windows
git --version
To configure user name:
git config --global user.name "YourUserName"
git config --global user.email "YourEmail@domain.com"
Create a new repository on github
To clone the repository you can use http or ssh
@vimaloctavius
vimaloctavius / MusicSchoolReportCard.ipynb
Created Aug 31, 2020
Created on Skills Network Labs
View MusicSchoolReportCard.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.