From the course: Python Data Analysis
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
pandas DataFrames and Series - Python Tutorial
From the course: Python Data Analysis
pandas DataFrames and Series
- [Instructor] The central object in pandas is the DataFrame, a data table with named and typed columns and with an index that identifies the rows. The default index is just a range of numbers, but it can be any type of data. Index sample in this slide where the DataFrame columns are name, date of birth, and city, the index could be the Social Security number or an alphanumerical employee ID. A series is effectively a single column from a DataFrame with its own index. It is the index that makes DataFrames and Series more powerful than NumPy arrays. For instance, we can combine two Series indexed by timestamps even if the indices are only partially overlapping. Pandas a will figure out which entries we can actually compute. The easiest way to make a pandas DataFrame is to load it from a file. We start with a simple text file, Nobels.csv, which contains a list of Nobel laureates. With a year and discipline in which they were awarded their prize as well as their date of birth. Pandas…