官术网_书友最值得收藏!

Introduction

We were introduced to the basic concepts of different fundamental data structures in the last chapter. We learned about the list, set, dict, tuple, and string. They are the building blocks of future chapters and are essential for data science.

However, what we have covered so far were only basic operations on them. They have much more to offer once you learn how to utilize them effectively. In this chapter, we will venture further into the land of data structures. We will learn about advanced operations and manipulations and use these fundamental data structures to represent more complex and higher-level data structures; this is often handy while wrangling data in real life.

In real life, we deal with data that comes from different sources and generally read data from a file or a database. We will be introduced to operations related to files. We will see how to open a file and how many ways there are to do it, how to read data from it, how to write data to it, and how to safely close it once we are done. The last part, which many people tend to ignore, is super important. We often run into very strange and hard-to-track-down bugs in a real-world system just because a process opened a file and did not close it properly. Without further ado, let's begin our journey.

主站蜘蛛池模板: 陇西县| 册亨县| 馆陶县| 稻城县| 竹山县| 杭锦旗| 莱阳市| 柳林县| 米泉市| 石家庄市| 子洲县| 北票市| 绥宁县| 册亨县| 佛山市| 盈江县| 通榆县| 荆门市| 汽车| 建德市| 铜山县| 桐乡市| 肥西县| 东山县| 建始县| 宾阳县| 浮梁县| 务川| 凉山| 连江县| 富锦市| 南陵县| 襄垣县| 腾冲县| 临安市| 泾川县| 东平县| 阳泉市| 始兴县| 前郭尔| 鄢陵县|