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)
| /*** | |
| * This script will anchor a GameObject to a relative screen position. | |
| * This script is intended to be used with ViewportHandler.cs by Marcel Căşvan, available here: http://gamedev.stackexchange.com/a/89973/50623 | |
| * It is also copied in this gist below. | |
| * | |
| * Note: For performance reasons it's currently assumed that the game resolution will not change after the game starts. | |
| * You could not make this assumption by periodically calling UpdateAnchor() in the Update() function or a coroutine, but is left as an exercise to the reader. | |
| */ | |
| /* The MIT License (MIT) |
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)