- PySpark Cookbook
- Denny Lee Tomasz Drabas
- 42字
- 2021-06-18 19:06:40
.count() action
The count() action returns the number of elements in the RDD. See the following code:
(
flights
.zipWithIndex()
.filter(lambda (row, idx): idx > 0)
.map(lambda (row, idx): row)
.count()
)
This will produce the following result:
# Output
1391578
推薦閱讀
- Java程序設計(慕課版)
- 零起步玩轉掌控板與Mind+
- Photoshop智能手機APP UI設計之道
- 跟“龍哥”學C語言編程
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Magento 2 Development Cookbook
- AIRIOT物聯網平臺開發框架應用與實戰
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(2)
- Spring Boot+Vue全棧開發實戰
- ScratchJr趣味編程動手玩:讓孩子用編程講故事
- 零代碼實戰:企業級應用搭建與案例詳解
- Hadoop 2.X HDFS源碼剖析
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- 現代C:概念剖析和編程實踐
- 寫給大家看的Midjourney設計書