concept Python in category pandas

appears as: Python
Pandas in Action

This is an excerpt from Manning's book Pandas in Action.

Pandas was initially developed by data scientist Wes McKinney while working at New York's AQR Capital Management investment firm in 2008. Dissatisfied with both Excel and the statistical programming language R, McKinney searched for a solution that would make it easy to solve frequently encountered problems in the financial industry, particularly data cleanup and aggregation. Python wasn't a great solution at the time either, but the beauty of the language inspired McKinney to build his library on top of its foundation. "I loved [Python] for its economy of expressions," he stated. "You can express complicated ideas in Python with very little code, and it is very easy to read"3.

A set is an unordered collection of unique values. As a reminder, the curly brace syntax for declaring a set is identical to that for declaring a dictionary. Python is able to distinguish between the two types based on the assignment of (or lack of assignment of) key-value pairs. pandas will raise a TypeError exception if we pass it into the Series constructor. There is no concept of order in a set. A dictionary is also unordered but there is a mapping between keys and values, which pandas can translate to a mapping of index labels to values. The library cannot do the same with a set[22].