local drafts
branch to local master
branch and remote master
branch
how to push a git checkout drafts
git branch --set-upstream-to master
git push . HEAD:master
local drafts
branch to local master
branch and remote master
branchgit checkout drafts
git branch --set-upstream-to master
git push . HEAD:master
# Given a pandas dataframe containing a pandas series/column of tuples B, | |
# we want to extract B into B1 and B2 and assign them into separate pandas series | |
# Method 1: (faster) | |
# use pd.Series.tolist() method to return a list of tuples | |
# use pd.DataFrame on the resulting list to turn it into a new pd.DataFrame object, while specifying the original df index | |
# add to the original df | |
import pandas as pd | |
import time |