Fast Filtering of large CSV files using Python

This post provides information on a Python script which was developed to filter large CSV files based on a given list of strings. The problem is that large CSV exports from our Data Warehouse contain…

Identification of spam sms text messages

This was a project to build a computational model for classifying sms text messages as either spam or not (known as ham). In the solution presented here the emphasis was put on simplicity. The computational…

Python script to extract key value pairs from…

The python script below reads a CSV value into key value pairs into both a list and dictionary data structure. import csv def readKeyValues(inputCsvFile,keyColumn,ValueColumn): #input file reader infile = open(inputFileName, "r") read = csv.reader(infile) headers…

How to install TFLearn

TFlearn is a python deep learning library built on top of TensorFlow. This means you need TensorFlow to be installed before you install TFlearn. To install TFlearn on Ubuntu (debian based systems) the pip command…

Python code to read csv into dictionary

This code is an example of how to read a csv file into a dictionary data structure. This code reads two values from the input csv, an ID and a date. The date is stored…