---
title: "Discussion on \"Array to CSV in python\" | Hashnode"
description: "Discussion on \"Array to CSV in python\". Before you can write to a CSV file, you'll need to import Python's built-in csv module.\nimport csv\n\nYour array can be a list of lists, where each sub-list represents a row in the CSV file. Here's an example array that we'll write to a CSV file:\ndata ..."
url: "https://hashnode.com/posts/array-to-csv-in-python/66136f351600713d8efcfa0e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Array to CSV in python](https://blog.commabot.com/array-to-csv-in-python?utm_source=hashnode&utm_medium=feed)

Before you can write to a CSV file, you'll need to import Python's built-in csv module. import csv Your array can be a list of lists, where each sub-list represents a row in the CSV file. Here's an example array that we'll write to a CSV file: data ...

Apr 8, 2024 · 2 min read · blog.commabot.com  
Read the article

-   [#csv](https://hashnode.com/tag/csv)
-   [#python](https://hashnode.com/tag/python)

## Written by

[commabot](https://hashnode.com/@Grippy)

@Grippy · Washington State, US

  
[View profile](https://hashnode.com/@Grippy)

Guides and tips for efficiently processing documents.

Researching and writing articles about document processing.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
