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 python3 | |
| """ | |
| To run: python3 nb2to3.py notebook-or-directory | |
| """ | |
| # Authors: Thomas Kluyver, Fernando Perez | |
| # See: https://gist.github.com/takluyver/c8839593c615bb2f6e80 | |
| import argparse | |
| import pathlib | |
| from nbformat import read, write |
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)