Data Analysis

Debugging Javascript – one useful tool

Posted on

Here’s an idea for displaying those pesky ephemeral variables that come and go like ghosts in JavaScript. Check this out. I want to know if I’m reading in a CSV file properly or not. You can use for any variable / array / object. <script> // Read in a .csv file d3.csv(“../datafile.csv”, function(someData) { debugMe(someData); }); function debugMe(whateverData) […]

Data Analysis

Python Immutable strings, integers, booleans

Posted on

In Python, STRINGS, INTS, BOOLs etc. are IMMUTABLE… meaning, for example, that you cannot convert a df column that is a string to a column that is int.  However,  you can ASSIGN the values (objects) to another variable or create a new instance of that column in another dataframe   … or use .astype(int) to perform […]

Data Analysis

Local Host Noob Error .. Closed CMD window

Posted on

FYI all users of Windows. I discovered that my local web server stopped working when I closed my Windows CMD window. I use the following command line to start up a local web server: python -m SimpleHTTPServer. Makes sense, I suppose, that the web server craps out when the CMD window is closed, but it took […]