Summary
In this chapter, you were introduced to the two fundamental pandas data structures, DataFrames and Series, along with the basic concepts of the pandas index. With the help of some basic I/O functions, such as read_csv()
and to_csv()
, you saw how pandas makes it easy to read from, or write data directly into, DataFrames and Series. To illustrate the ideas, a few pandas methods were introduced in the chapter. You also learned about methods such as set_index()
and the use of timestamp
as an index, and used resample()
, a pandas time series method that can change the time interval of data, as well as concat()
, which is used to combine pandas data structures into other structures.
By now, you should be comfortable with the concept of a DataFrame and Series. The rest of the chapters in this book will build upon these concepts. In the next chapter, you will learn about data I/O using pandas.