- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 154字
- 2021-07-02 19:34:33
The pandas way
Similar to Numpy, pandas offers an easy way to load text files into a pandas dataframe:
import pandas as pd
pd.read_csv(usecols=1)
Here the separation can be denoted by either sep or delimiter, which is set as comma , by default (CSV stands for comma-separated values).
There is a long list of less commonly used options available as to determine how different data formats, data types, and errors should be handled. You may refer to the documentation at http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html. Besides flat CSV files, Pandas also has other built-in functions for reading other common data formats, such as Excel, JSON, HTML, HDF5, SQL, and Google BigQuery.
To stay focused on data visualization, we will not dig deep into the methods of data cleaning in this book, but this is a survival skill set very helpful in data science. If interested, you can check out resources on data handling with Python.
- Objective-C應用開發全程實錄
- C語言程序設計案例教程(第2版)
- VMware vSphere 6.7虛擬化架構實戰指南
- Python Tools for Visual Studio
- Functional Programming in JavaScript
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- Elasticsearch for Hadoop
- Salesforce Reporting and Dashboards
- Arduino可穿戴設備開發
- MyBatis 3源碼深度解析
- VMware vSphere Design Essentials
- Selenium Essentials
- Learning jqPlot
- 3ds Max瘋狂設計學院
- Python 3.8編程快速入門