From my experience, it is quite slow to use scp to transfer data between my laptop and EC2. In this article, I’ll show you how to upload and download files to/from Amazon EC2 with Dropbox, which is much faster.
For better structuring a Python project, I decide to learn of packages, modules and classes. This article also shows how to import all modules and classes in a directory.
I am analyzing a trace in GTFS, a collection of CSV files. Each record of a csv file is consisting of one or more fields speparated by commas
,. It is error-prone to read csv files by simply using
[line.split(',') for line in f.readlines()] for fields might contain commas. Therefore, I decide to switch to the Python module csv.
I sometimes encounter problems like
TypeError: unhashable type: 'list' while programming. Therefore, I decide to set aside some time to undertand the important Python concepts, mutable, hashable and iterable.
I learn of NumPy while seeking one way to read a text file effectively. Therefore, I decide to put some notes here for convenient access.