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)
license: gpl-3.0 | |
redirect: https://beta.observablehq.com/@mbostock/d3-multi-line-chart |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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)
svg { | |
height: 80vh; !important; | |
width: 90vm; !important; | |
} | |
circle.dimple-series-1 { | |
fill: red; | |
} |
These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
ABSOLUTELY NO WARRANTY. | |
If you are still reading let's carry on with the code. | |
sudo apt-get update && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
#!/usr/bin/env python | |
""" | |
minimal example of a file sharing service in python 2.7 using only built-ins | |
there is no error check or security, this is meant to be as a base/reference | |
to quickly get started | |
This is free and unencumbered software released into the public domain. | |
http://unlicense.org/ |