How does pandas read data

Pandas need to read table type data.

Type of data Description Pandas read method
csv、tsv、txt Comma-delimited, tab-delimited plain text file pd.read_csv
excel xls or xlsx File pd.read_excel
mysql relational database table pd.read_sql

1. Read CSV

1
2
3
import pandas as pd

df = pd.read_csv('data.csv')

2.


How does pandas read data
https://www.hardyhu.cn/2022/02/25/How-does-pandas-read-data/
Author
John Doe
Posted on
February 25, 2022
Licensed under