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)
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)
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update -q | |
su - vagrant | |
wget -q https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | |
chmod +x miniconda.sh | |
./miniconda.sh -b -p /home/vagrant/miniconda | |
echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
[program:{program_name}] | |
directory=/home/{project_name}/api/falcon_api/app | |
environment=PATH=/home/anaconda3/envs/{env_name}/bin | |
command=/home/anaconda3/envs/{env_name}/bin/gunicorn app:api -b 0.0.0.0 | |
autostart=true | |
autorestart=true | |
stderr_logfile=/var/log/{project_name}/{filename}.err.log | |
stdout_logfile=/var/log/{project_name}/{filename}.out.log | |
NOTE: |
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
mdd_notes.md |