concept datum in category pandas

This is an excerpt from Manning's book Pandas in Action.
"It is a capital mistake to theorize before one has data," advises Sherlock Holmes to his assistant John Watson in A Scandal in Bohemia, the first of Sir Arthur Conan Doyle’s classic short stories pairing the duo. "Insensibly one begins to twist facts to suit theories, instead of theories to suit facts."[4]
The wise detective’s words continue to ring true more than a century after the publication of Doyle’s work, in a world where data is becoming increasingly prevalent in every facet of our lives. "The world’s most valuable resource is no longer oil, but data" declared the Economist in a 2017 opinion piece[5]. Data is evidence, and evidence is critical to businesses, governments, institutions, and individuals solving increasingly complex problems in an interconnected world. Across a breadth of industries, the world’s most successful companies, from Facebook to Amazon to Netflix, cite data as the most prized asset in their portfolios. United Nations Secretary-General António Guterres called accurate data "the lifeblood of good policy and decision-making"[6]. The success of communities, companies, even countries in the 21st century depends on their ability to acquire, aggregate and analyze data.
More data has been created in the last two years alone than in the entire history of humanity before them[7]. Global market intelligence firm The Internal Data Corporation (IDC) estimates that the world’s data will grow to be over 175 zettabytes in size by 2025 (one zettabyte is equal to one trillion gigabytes)[8]. Data powers everything from movie recommendations to medical treatments, from cloud computing to poverty reduction initiatives. And here's the kicker. Estimates say that only about 0.5% of the data available today has been analyzed7.
The ability to work with data is becoming a necessary skillset in the modern economy. Company review aggregator Glassdoor cited data scientist as the highest-paid entry-level job in the United States, with a base salary approaching $100,000[9]. A 2018 LinkedIn Workforce Report found more than 150,000 unfilled data scientist roles in the United States alone[10]. Harvard Business Review contributors Thomas H. Davenport and D.J. Patil even went as far as to call data science "the sexiest job of the 21st century"[11].
As demand has grown for analysts skilled at gathering insights from mountains of data, so has the technological ecosystem of tools for doing so. Today, pandas is one of the most popular software packages available for data analysis. An open-source library built on top of the Python programming language, pandas enables developers to manipulate and analyze complex data sets with ease. Open-source means that the library is available to download for free and is maintained by a team of volunteer developers.
At its core, pandas is comparable to Microsoft’s spreadsheet software Excel or Google’s in-browser Sheets application. All three of these options allow users to interact with single- or multi-column collections of data organized in a tabular (grid-like) shape. Data can be sorted, filtered, aggregated, split, pivoted, summarized, and more.
What makes pandas special is the balance it strikes between processing power and user productivity. By relying on lower-level languages for many of its calculations, it can efficiently perform operations on data sets with millions of rows in mere seconds. At the same time, it maintains a simple, terse, and intuitive set of commands. It is easy to accomplish a lot with a little code in pandas. The library works seamlessly with numbers, text, dates and times, missing data, disparate data, and more. We'll explore its incredible versatility as we proceed through the datasets packaged with this book.
Figure 1.1: Sample pandas DataFrame, a 2-dimensional table of data
![]()
In [26] data = np.random.randint(1, 101, 10) data Out [26] array([27, 16, 13, 83, 3, 38, 34, 19, 27, 66]) In [27] pd.Series(data) Out [27] 0 27 1 16 2 13 3 83 4 3 5 38 6 34 7 19 8 27 9 66 dtype: int64