Starting Vim
vim [file1] [file2] ...
import matplotlib.pyplot as plt | |
import numpy as np | |
import sklearn.datasets | |
import sklearn.cross_validation as cv | |
from sklearn import linear_model | |
dataset = sklearn.datasets.fetch_california_housing() | |
X = dataset['data'] | |
y = dataset['target'] |
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)
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |