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)
| #!/usr/bin/env python | |
| import hashlib | |
| import optparse | |
| import paramiko | |
| from Crypto.PublicKey import RSA | |
| def insert_char_every_n_chars(string, char='\n', every=64): | |
| return char.join( |
| #!/bin/bash | |
| # | |
| # using ec2 tools | |
| # | |
| # Marcus Vinicius Fereira ferreira.mv[ at ].gmail.com | |
| # 2011-11 | |
| ### | |
| ### programs |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'net/http' | |
| # check_aws_status.rb | |
| # A nagios plugin for fetching RSS feeds from http://status.aws.amazon.com. | |
| # Source: https://gist.github.com/1604786 | |
| # Written by Aaron Suggs: https://github.com/ktheory |
| # encoding: utf-8 | |
| # | |
| ## Stupid small pure Ruby JSON parser & generator. | |
| # | |
| # Copyright © 2013 Mislav Marohnić | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| # software and associated documentation files (the “Software”), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, | |
| # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to |
| require 'socket' | |
| require 'pp' | |
| require 'xdr' | |
| # Inspiration | |
| # https://github.com/fastly/ganglia/blob/master/lib/gm_protocol.x | |
| # https://github.com/igrigorik/gmetric/blob/master/lib/gmetric.rb | |
| # https://github.com/ganglia/monitor-core/blob/master/gmond/gmond.c#L1211 | |
| # https://github.com/ganglia/ganglia_contrib/blob/master/gmetric-python/gmetric.py#L107 |