Programming with Python
Some Python codes I wrote for self-study.
complete a pdf form using python — Mar 21, 2017 12:38:17 PM
Optimizing your python code: code performance profiling — Nov 1, 2016 9:14:47 PM
Tokenizing Thai language — Nov 1, 2016 2:35:35 PM
How to call API endpoint using python — Nov 1, 2016 3:31:28 AM
Implement logistic regression scoring without scikit-learn — Oct 29, 2016 5:21:36 PM
Sorting multiple lists A and B by the value in B in python — Sep 22, 2016 10:57:11 PM
A good practice when reading from a file in Python — Sep 20, 2016 5:04:11 PM
Working with Unicode, ASCII and utf-8 — Sep 12, 2016 9:10:02 PM
Using multi threads in python — Sep 10, 2016 2:07:21 PM
Using Python to read and write Spreadsheet — Aug 26, 2016 4:23:31 PM
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) — Jul 5, 2016 9:33:35 PM
Python taking arguments from command line with argparse — Apr 16, 2016 8:11:41 PM
Python taking inputs from command line — Mar 7, 2016 7:41:28 PM
How to send email with file attachment via Python — Jan 14, 2016 7:56:55 AM
How to download images from url in Python — Jan 10, 2016 7:33:02 AM
(An easy way to) convert images to pdf from python — Jan 8, 2016 6:45:37 PM
Generate date string range in python — Jan 6, 2016 6:49:09 AM
virtualenv and pip — Dec 4, 2015 8:37:35 AM
Convert key-value to flat file — Oct 24, 2015 4:41:27 AM
Cheat sheet — Aug 2, 2015 8:51:58 AM
SQL query for pandas — Jul 29, 2015 11:18:54 PM
Scikit learn on Big(ger) Data — Jul 24, 2015 1:39:22 PM
Sample rows from pandas DataFrame — Jul 23, 2015 8:48:29 PM
Dashboard web application for Python — Jul 18, 2015 6:34:45 PM
Use IPython notebook with Spark — Jul 12, 2015 7:36:36 AM
Run IPython notebook on AWS — Jul 12, 2015 7:31:08 AM
Setup Ipython notebook on a remote server and how to connect to it — Jul 10, 2015 9:05:42 PM
Update anaconda and its packages on Ubuntu — Jul 10, 2015 8:07:43 PM
Append or Extend a list — Jul 10, 2015 9:14:48 AM
Count the occurrence of a character in a string — Jul 10, 2015 9:14:00 AM
Create variable report from a dataframe — Jul 8, 2015 11:03:14 PM
write to text file — Jul 7, 2015 3:48:01 PM
Display if string cintains characters — Jul 7, 2015 3:40:16 PM
Binning data using decision tree regression — Jul 2, 2015 12:03:48 AM
Sample with replacement — Jun 30, 2015 8:38:44 PM
Moving average using rolling_mean — Jun 30, 2015 8:36:22 PM
How to add a row to dataframe in a for loop — Jun 30, 2015 8:34:41 PM
Convert string to datetime format in Python — Jun 25, 2015 12:52:58 PM
latex on iPython and Matplotlib — Jun 22, 2015 8:21:51 PM
How to display a nicely ordered crosstab in Pandas — Jun 18, 2015 9:18:43 PM
Finding a corresponding leaf node for each data point in a decision tree — May 26, 2015 1:42:31 AM
Demystifying variable assignment in python — Apr 2, 2015 3:51:22 PM
Process large data file in python — Mar 21, 2015 4:16:12 PM
Rename columns in python — Mar 19, 2015 3:29:16 PM
Setting aspect ratio in matplotlib — Mar 9, 2015 5:18:00 PM
Convert multi-index into columns — Mar 9, 2015 5:17:06 PM
Pivot table in Python — Mar 9, 2015 5:16:07 PM
Connect to Oracle database from python — Feb 19, 2015 6:23:33 AM
Import a module not in path — Feb 2, 2015 7:12:54 PM
Initialize dataframe with unknown row number — Jan 30, 2015 9:50:03 PM
List all columns in a dataframe containing a string — Jan 13, 2015 5:23:18 AM
Format and display elements in python list — Jan 9, 2015 8:36:46 AM
Python cheat sheet — Jan 2, 2015 8:52:03 PM
frequency, contingency and pivot tables -- All done by crosstab — Dec 30, 2014 9:28:42 AM
Decision Tree in Python — Dec 30, 2014 9:11:38 AM
Bridging the gap between Pandas and Scikit-learn — Dec 30, 2014 8:38:35 AM
Display Decision Tree in Python using pydot and GraphViz — Dec 27, 2014 1:06:06 AM
Using Anaconda — Dec 27, 2014 12:51:05 AM
How can I obtain the element-wise logical NOT of a pandas Series? — Sep 17, 2014 2:55:45 PM
Pandas aggregate count distinct — Sep 17, 2014 2:54:21 PM
check if string in pandas dataframe column is in list — Sep 17, 2014 2:38:34 PM
Connecting python to database — Sep 5, 2014 8:03:21 AM
Install scikit-learn in your computer — Sep 4, 2014 7:31:25 AM
Chi-square test — Aug 22, 2014 8:12:04 PM
get the maximum value for each row — Aug 14, 2014 7:58:41 AM
resources for Python — Aug 14, 2014 7:55:26 AM
Using iPython on AWS — Aug 14, 2014 7:33:20 AM
How to convert ipython notebook into other formats — Aug 11, 2014 4:11:00 AM
Import large file size into Python using pandas — Aug 11, 2014 4:02:34 AM
Convert data type of columns in DataFrame -- Object to float64 — Aug 8, 2014 4:45:03 PM
iPython notebook shortcuts — Aug 4, 2014 11:27:18 PM
Install a newer version of anaconda while keeping the existing one — Aug 4, 2014 5:53:51 PM
Setup iPython notebook server for remote access — Apr 6, 2014 6:56:26 AM
Using iPython step by step — Mar 16, 2014 1:46:42 AM
Good resources for Python programming — Aug 30, 2012 4:10:59 AM
How to import a (MATLAB) .mat file into Python? — Aug 30, 2012 4:01:06 AM
How to plot a graph using matplotlib in Eclipse — Aug 30, 2012 2:05:18 AM
Static class variable in Python — Aug 29, 2012 4:21:47 PM