Sometimes, we want to read a file with a semi colon separator in Python Pandas.
In this article, we’ll look at how to read a file with a semi colon separator in Python Pandas.
How to read a file with a semi colon separator in Python Pandas?
To read a file with a semi colon separator in Python Pandas, we call read_csv with the sep argument set to the separator for the row items.
For instance, we write
data = read_csv(csv_path, sep=';')
to call read_csv with the csv_path to the csv file.
And we set sep to ';' to separate row items by the colon.
Conclusion
To read a file with a semi colon separator in Python Pandas, we call read_csv with the sep argument set to the separator for the row items.