I have to load excel file with few column to pandas data frame. In That Excel file some times data use come with column names "Unnamed 1" ,"Unnamed 2", "Unnamed 3" . I want to delete all the columns where column names start with "Unnamed" . How to do this ? Suppose my data frame name is df .
-
1do you save CSV files through pandas?Kevin Choi– Kevin Choi2020-10-28 08:38:30 +00:00Commented Oct 28, 2020 at 8:38
-
Yes will save to CSV . Before that I want to drop the columns with column name starting with "Unnamed" .Gyanaranjan Nayak– Gyanaranjan Nayak2020-10-28 08:40:39 +00:00Commented Oct 28, 2020 at 8:40
Add a comment
|