git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
Window | |
---- | |
N new widnow | |
P new private window | |
W close window | |
o quick command # this is really helpful when used as key sequnce e.g. pressing o r d in sequence brings me to reddit immediately as 'o' to show quick command window and 'rd' is nickname of reddit in my bookmarks | |
+Esc Task Manager | |
E extensions | |
Y history | |
? keyboard cheatsheet |
# For Windows users# Note: <> denotes changes to be made | |
#Create a conda environment | |
conda create --name <environment-name> python=<version:2.7/3.5> | |
#To create a requirements.txt file: | |
conda list #Gives you list of packages used for the environment | |
conda list -e > requirements.txt #Save all the info about packages to your folder |
import inspect | |
def class_name(cls): | |
"""Return a string representing the class""" | |
# NOTE: can be changed to str(class) for more complete class info | |
return cls.__name__ | |
def classes_tree(module, base_module=None): | |
if base_module is None: | |
base_module == module.__name__ |