Import Python 146 - C extensions, Cleaning data with Pandas, Machine Learning and more
From ImportPython Blog

by Ankur Gupta

Worthy Read

GoCD is a continuous delivery tool specializing in advanced workflow modeling and dependency management. It lets you track a change from commit to deploy at a glance, providing superior visibility into your workflow. It’s open source, free to use and download.

Interpreted language will never match the performance of compiled languages . Ever since I moved on to python from C/C++ , I always wanted to combine best of both worlds by extending python in C .

I’ve been using Excel for data cleaning until I discovered how powerful pandas are for data analysis and data cleaning. In this article I want to go over basics of how to use pandas for cleaning data in excel files.

Fisher’s Linear Discriminant Analysis (LDA) is a dimension reduction technique that can be used for classification as well. In this blog post, we will learn more about Fisher’s LDA and implement it from scratch in Python.
machine learning

This post is a deep-dive into programmatically trading on the Ethereum / Bancor exchange and exploiting a game-theoretic security flaw in Bancor, a high-profile smart contract on the Ethereum blockchain.

Embed docs directly on your website with a few lines of code. Test the API for free.

In Python, a class can inherit features and attributes from multiple classes and thus, implements multiple inheritance. MRO or Method Resolution Order is the hierarchy in which base classes are searched when looking for a method in the parent class.

The simplest way to serve HTTP/2 is to use the Quart framework, furthermore Quart is the only Python framework to support server-push.

Imagine that you are developing a machine learning model to classify articles. You have managed to get an unreasonably large text file which contains millions of identifiers of similar articles that belong to the same class. You are unsure whether identifiers that are close to each other are independent.
machine learning

We help companies like Airbnb, Pfizer, and Artsy find great developers. Let us find your next great hire. Get started today.


Medium has a large amount of content, a large number of users, and an almost overwhelming number of posts. When you try to find interesting users to interact with, you’re flooded with visual noise. I define an interesting user as someone who is from your network, who is active, and who writes responses that are generally appreciated by the Medium community.

Explained using Python code snippets.
machine learning

Watch your Python run like a movie.
tracing code execution


Clustering is a type of Unsupervised learning. This is very often used when you don’t have labeled data. K-Means Clustering is one of the popular clustering algorithm. The goal of this algorithm is to find groups(clusters) in the given data. In this post we will implement K-Means algorithm using Python from scratch.
machine learning

web crawling


magic-the-gifening - 146 Stars, 6 Fork
A Twitter bot which tweets Magic: the Gathering cards with appropriate GIFs superimposed onto them.

mailproxy - 94 Stars, 4 Fork
mailproxy is a simple SMTP proxy. It receives emails through an unencrypted, unauthenticated SMTP interface and retransmits them through a remote SMTP server that requires modern features such as encryption and/or authentication. mailproxy is primarily useful for enabling email functionality in legacy software that only supports plain SMTP.

RobinhoodShell - 30 Stars, 4 Fork
A command line shell for trading stocks using Robinhood

InstagramLib - 26 Stars, 4 Fork
Library for interaction with Instagram web-interface. If you haven't access to Instagram API, you can use this library

CSRF-tutorial - 17 Stars, 2 Fork
Use Django To Introduce CSRF and Cookies , Session

verpy - 6 Stars, 0 Fork
Python application versioning tool

tably - 0 Stars, 0 Fork
Python script for converting .csv data to LaTeX tables.

pythonrc - 0 Stars, 0 Fork
This is a python script intended to improve on the default Python interactive shell experience.

Ankur has coded and deployed numerous Python software over the last 10 years, at three venture funded startup and a fortune 10 company. He currently heads Numerate Labs. ImportPython is his side project with Python being his go to programming language.

Blog Categories