This gist aims to setup a LInux machine for python work from scratch.
Other terminal app that is plain better.
- start new with session name:
tmux new -s myname
def _get_col_idxs(df, cols): | |
"return cols index to perform iloc" | |
return [df.columns.get_loc(c) for c in L(cols) if c in df] | |
def _iloc(df, rows, cols=None): | |
"Iloc that supports col names" | |
if isinstance(cols, (tuple, list, str)): | |
cols = _get_col_idxs(df, cols) | |
return df.iloc[rows, cols] | |
return df.iloc[rows, slice(None)] |
This gist aims to setup a LInux machine for python work from scratch.
Other terminal app that is plain better.
tmux new -s myname
Quick install :
>>rvu
rvu: fatal - missing octree argument
L'output doit etre rvu: fatal - missing octree argument
, ca veut dire que il trouve rvu
sur ton path.
Check fiest that a upstream repo is setup here.
$ git remote -v
Basic commands to sync/merge git with origin.
$ git checkout master
> Switched to branch 'master'
$ git merge upstream/master
> Updating a422352..5fdff0f