简体   繁体   中英

Python write multiple numpy array to csv file

I am trying to add features of multiple images by converting them from raw data format to .csv.

I have read and displayed features of two images via print function but during addition of contents to csv, i am only able to add single numpy array. I want to add few thousand images in same csv.

Below is printed output, but csv only shows one array (having features of single image).

Image showing code and output

我通过使用以下代码完成了此操作: with open("output.csv", "a") as f: writer = csv.writer(f) writer.writerows(data_read[2])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM