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)
| wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
| #!/bin/bash | |
| ####################################################################### | |
| # This is a helper script that keeps snapraid parity info in sync with | |
| # your data and optionally verifies the parity info. Here's how it works: | |
| # 1) It first calls diff to figure out if the parity info is out of sync. | |
| # 2) If parity info is out of sync, AND the number of deleted files exceed | |
| # X (configurable), it triggers an alert email and stops. (In case of | |
| # accidental deletions, you have the opportunity to recover them from | |
| # the existing parity info) | |
| # 3) If partiy info is out of sync, AND the number of deleted files exceed X |
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/python | |
| # | |
| # ---------------------------------------------------------------------------- | |
| # "THE BEER-WARE LICENSE" (Revision 42): | |
| # <Gnonthgol@gmail.com> wrote this file. As long as you retain this notice you | |
| # can do whatever you want with this stuff. If we meet some day, and you think | |
| # this stuff is worth it, you can buy me a beer in return Gnonthgol | |
| # ---------------------------------------------------------------------------- | |
| # |