Python decorators, as the name suggests, are decorators for python entities. In simpler terms, it is a wrapper on an existing functionality without modifying that functionality. Now question may arise, why do we need decorator? Imagine a scenario where you are accessing a function from third party library and want to provide it some additional […]
Author: admin
Python collections – Part 1 – Defaultdict
Defaultdict is available as part of collections module in Python that overcome some drawbacks of using native dict. Let us see why and when to use a defaultdict. Consider a scenario when you are trying to access a key which is not present in dict. It will straightaway throw a keyerror. Again, it can be explicitly […]
Exception handling in Python using try, except and finally
Like other popular languages such as Java, C#, etc, Python also offers a clean exception handling mechanism. Exception handling is pretty useful to ensure graceful running of system and make end user aware of any error in an elegant way. What will happen if there is no exception handling in place? Let us understand it with […]
Getting started with Github – A beginner’s guide
Github is one of the most widely used code repository storage system. It is helpful in storing content on a cloud network and manage it via Git. Moreover, you can also fork some other repository for your own usage, provided it is publicly available and license of that repository defines to what extent you can […]
Creating a linked list – Python implementation
Linked list is one of the famous data structure that people come across. It is a linear data structure that is stored in memory in non-contagious fashion. One can access elements of a linked list from the start only, unless reference to other element is provided. A basic linked list comprises of node objects where […]
Website scraping using python
Website scraping refers to reading of any website’s structure to extract needed information through an automated system, usually a script. There is a thin line between legal and illegal website scraping. If a content is available without logging in or performing any identity verification or unless explicitly mentioned by the content provider, scraping that website […]
The Single Most Important Skill for a Data Scientist
By Richard Pugh, Commercial Director I love my job. Seriously. I was enjoying it before Hal Varian made it sexy, but since then, and the data science explosion, everything has kicked into an even higher gear. Why do I love it? Because fundamentally, our job as data scientists is to help people make better decisions […]
Data Science Tweet Analysis – What tools are people talking about?
By Chris Musselle PhD, Mango UK At Mango we use a variety of tools in-house to address our clients’ business needs and when these fall within the data science arena, the main candidates we turn to are either the R or Python programming languages. The question as to which is the “best” language for doing […]