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)
| /** | |
| * HOW TO USE: | |
| * 1. Go to: https://YOURTEAM.slack.com/files | |
| * 2. Open inspector for your browser. | |
| * 3. You'll see: 2017/6/6 22:16:45.834 User id: XXXXXXXXX, team id: XXXXXXXXX | |
| * 4. Paste user id in to where it says "USER_ID_HERE" | |
| * 5. Copy/paste this whole script to your console. | |
| */ | |
| /*global | |
| jQuery, TS |
| import gc | |
| import machine | |
| import pyb | |
| import time | |
| import network | |
| # Configure GPIO pins 0 and 2 to be used for | |
| # the I²C interface | |
| iic = machine.I2C(pyb.Pin(2), pyb.Pin(0)) |
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
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)
| #!/bin/sh | |
| # This is a skeleton of a bash daemon. To use for yourself, just set the | |
| # daemonName variable and then enter in the commands to run in the doCommands | |
| # function. Modify the variables just below to fit your preference. | |
| daemonName="DAEMON-NAME" | |
| pidDir="." | |
| pidFile="$pidDir/$daemonName.pid" |