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

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.

主站蜘蛛池模板: 阜南县| 九台市| 烟台市| 苏尼特左旗| 习水县| 达尔| 绥化市| 通辽市| 芜湖县| 紫金县| 眉山市| 衡阳县| 西平县| 庐江县| 肃宁县| 岗巴县| 凌云县| 上林县| 铜川市| 安化县| 四川省| 来凤县| 泰来县| 辽中县| 若尔盖县| 高邮市| 景洪市| 怀安县| 固安县| 蚌埠市| 渑池县| 加查县| 宜兰县| 宝清县| 屏南县| 临高县| 临潭县| 石景山区| 金湖县| 泰来县| 静海县|