- 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.
- 平面設(shè)計(jì)初步
- Drupal 7 Multilingual Sites
- 物聯(lián)網(wǎng)與云計(jì)算
- 80x86/Pentium微型計(jì)算機(jī)原理及應(yīng)用
- Implementing Oracle API Platform Cloud Service
- Nginx高性能Web服務(wù)器詳解
- Mastering ServiceNow Scripting
- Salesforce for Beginners
- IBM? SmartCloud? Essentials
- 數(shù)字多媒體技術(shù)基礎(chǔ)
- 設(shè)計(jì)模式
- PowerPoint 2010幻燈片制作高手速成
- Eclipse RCP應(yīng)用系統(tǒng)開發(fā)方法與實(shí)戰(zhàn)
- 從實(shí)踐中學(xué)嵌入式Linux操作系統(tǒng)
- Cloud Native Development Patterns and Best Practices