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

Chapter 6. Interacting with Databases

Data analysis starts with data. It is therefore beneficial to work with data storage systems that are simple to set up, operate and where the data access does not become a problem in itself. In short, we would like to have database systems that are easy to embed into our data analysis processes and workflows. In this book, we focus mostly on the Python side of the database interaction, and we will learn how to get data into and out of Pandas data structures.

There are numerous ways to store data. In this chapter, we are going to learn to interact with three main categories: text formats, binary formats and databases. We will focus on two storage solutions, MongoDB and Redis. MongoDB is a document-oriented database, which is easy to start with, since we can store JSON documents and do not need to define a schema upfront. Redis is a popular in-memory data structure store on top of which many applications can be built. It is possible to use Redis as a fast key-value store, but Redis supports lists, sets, hashes, bit arrays and even advanced data structures such as HyperLogLog out of the box as well.

主站蜘蛛池模板: 博湖县| 闵行区| 兴山县| 故城县| 岳普湖县| 元朗区| 曲阳县| 信阳市| 曲靖市| 通许县| 塔河县| 浦城县| 肃北| 江城| 徐闻县| 江都市| 于田县| 广安市| 鄂托克旗| 额尔古纳市| 五寨县| 兰州市| 灵川县| 玛多县| 永春县| 永福县| 集贤县| 陇川县| 泸州市| 宁明县| 高安市| 正镶白旗| 连江县| 原平市| 买车| 囊谦县| 望奎县| 道孚县| 洞口县| 东至县| 靖远县|