Monthly Archives: January 2014

Pandas dataframe: grouping column by name


Notice: Undefined index: sfsi_original_counts in /home/thomascojx/www/blog/wp-content/plugins/ultimate-social-media-icons/libs/controllers/sfsiocns_OnPosts.php on line 45

Let us consider this data set in CSV format: DIG1, DIG1, DIG1, DIG2 1, 3, 5, 8 2, 4, 6, 9 3, 5, 7, 10DIG1, DIG1, DIG1, DIG2 1, 3, 5, 8 2, 4, 6, 9 3, 5, 7, 10 … Continue reading

Posted in Python | Tagged | 5 Comments

Starting to use Python Pandas library


Notice: Undefined index: sfsi_original_counts in /home/thomascojx/www/blog/wp-content/plugins/ultimate-social-media-icons/libs/controllers/sfsiocns_OnPosts.php on line 45

Pandas is brilliant. If you are looking to manipulate data in Python, use it. I am refactoring most of my codes with this library. It provides many useful data structures to manipulate data in 2, 3, 4 dimensions and more. … Continue reading

Posted in Python | Tagged , | Leave a comment

Reading Nikkon Raw image with Gimp plugin UFRaw


Notice: Undefined index: sfsi_original_counts in /home/thomascojx/www/blog/wp-content/plugins/ultimate-social-media-icons/libs/controllers/sfsiocns_OnPosts.php on line 45

I recently started to play with RAW images on a Nikkon camera. The first issue was that gimp could open the images but only in a kind of thumbnail version. Browsing around it looks like one tool to read the … Continue reading

Posted in photos | Tagged | Leave a comment

pandas import fails with ImportError: cannot import name hashtable


Notice: Undefined index: sfsi_original_counts in /home/thomascojx/www/blog/wp-content/plugins/ultimate-social-media-icons/libs/controllers/sfsiocns_OnPosts.php on line 45

Import of pandas raises the following error: ImportError: cannot import name hashtableImportError: cannot import name hashtable Starting a python session, I typed from pandas import hastablefrom pandas import hastable and got this new message: ImportError: cannot import name hashtableImportError: cannot … Continue reading

Posted in Python | Tagged | Leave a comment