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

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.

主站蜘蛛池模板: 巫山县| 镇安县| 元江| 寻乌县| 连城县| 涟源市| 扬中市| 运城市| 开远市| 凤山县| 芒康县| 永寿县| 平乐县| 梅河口市| 尖扎县| 长丰县| 桃园县| 民县| 吴桥县| 灵宝市| 怀柔区| 张北县| 淮阳县| 图片| 双牌县| 柳林县| 武城县| 祁连县| 长治市| 南通市| 凌云县| 乐业县| 安顺市| 堆龙德庆县| 得荣县| 比如县| 兰西县| 神池县| 穆棱市| 伊金霍洛旗| 松江区|