> For the complete documentation index, see [llms.txt](https://danfo.jsdata.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://danfo.jsdata.org/api-reference/input-output.md).

# Input/Output

## CSV

| \`\`                                                            |                                                          |
| --------------------------------------------------------------- | -------------------------------------------------------- |
| [`readCSV`](/api-reference/input-output/danfo.read_csv.md)      | Read a comma-separated values (csv) file into DataFrame. |
| [`read_excel`](/api-reference/input-output/danfo.read_excel.md) | Read an Excel values (xlsx) file into DataFrame.         |
| [`readJSON`](/api-reference/input-output/danfo.read_json.md)    | Read a JSON values (json) file into DataFrame.           |
| [toCSV](/api-reference/input-output/danfo.to_csv.md)            | Writes a DataFrame/Series to CSV file                    |
| [to\_excel](/api-reference/input-output/danfo.to_excel.md)      | Writes a DataFrame/Series to Excel file                  |
| [toJSON](/api-reference/input-output/danfo.to_json.md)          | Writes a DataFrame/Series to JSON file                   |

Writing to `CSV` and `JSON` can also be done directly from DataFrame or Series objects (e.g. [`DataFrame.toCSV()`](/api-reference/dataframe/dataframe.to_csv.md))
