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/bash | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |
#!/bin/bash | |
# Copy banner.ps and owl.ps from: | |
# http://athena10.mit.edu/trac/browser/trunk/third/lprng/athena?rev=13556 | |
echo "/user (`whoami`) def" > vars.ps | |
echo "/host (`hostname`) def" >> vars.ps | |
echo "/queuejob () def" >> vars.ps | |
echo "/date (`date +"%A, %e %B %Y %H:%M:%S"`) def" >> vars.ps | |
echo "/motd () def" >> vars.ps |
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)