Kizspy | Question: 20
(Choose 1 answer)
Which of the following code will export dataframe (df) in CSV file, encoded in UTF-8 after hiding index & header
labels.
A. df_1.to_csv('../data/file.csv', encoding='utf-8',index=True, header=False)
B. df_1.to_csv('../data/file.csv', encoding='utf-8',index=False,header=True)
C. df_1.to_csv('../data/file.csv', encoding='utf-8',index=False,header=False)
D. None of the others