- Hands-On Artificial Intelligence for IoT
- Amita Kapoor
- 168字
- 2021-07-02 14:01:59
CSV format
Comma-separated value (CSV) files are the most popular formats for storing tabular data generated by IoT systems. In a .csv file, the values of the records are stored in plain-text rows, with each row containing the values of the fields separated by a separator. The separator is a comma by default but can be configured to be any other character. In this section, we will learn how to use data from CSV files with Python's csv, numpy, and pandas modules. We will use the household_power_consumption data file. The file can be downloaded from the following GitHub link: https://github.com/ahanse/machlearning/blob/master/household_power_consumption.csv. To access the data files, we define the following variables:
data_folder = '../../data/household_power_consumption'
data_file = 'household_power_consumption.csv'
Generally, to quickly read the data from CSV files, use the Python csv module; however, if the data needs to be interpreted as a mix of date, and numeric data fields, it's better to use the pandas package. If the data is only numeric, NumPy is the most appropriate package.
- 電氣自動(dòng)化專業(yè)英語(yǔ)(第3版)
- Big Data Analytics with Hadoop 3
- 腦動(dòng)力:PHP函數(shù)速查效率手冊(cè)
- 電腦上網(wǎng)直通車
- Storm應(yīng)用實(shí)踐:實(shí)時(shí)事務(wù)處理之策略
- Excel 2010函數(shù)與公式速查手冊(cè)
- TensorFlow Deep Learning Projects
- 手把手教你學(xué)Photoshop CS3
- Machine Learning in Java
- DynamoDB Applied Design Patterns
- 大數(shù)據(jù)時(shí)代的調(diào)查師
- 工業(yè)機(jī)器人應(yīng)用系統(tǒng)三維建模
- 工業(yè)機(jī)器人技術(shù)
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- 案例解說(shuō)單片機(jī)C語(yǔ)言開(kāi)發(fā)