![]() |
VOOZH | about |
Let's see how to convert a DataFrame to a CSV file using the tab separator. We will be using the to_csv() method to save a DataFrame as a csv file. To save the DataFrame with tab separators, we have to pass "\t" as the sep parameter in the to_csv() method.
Approach :
Output :
👁 Image
The contents of the Students.csv file are :