When i am trying to read the fixed width file, it gives me that
Exception: Index (columns 0) have duplicated values ['12345']
The thing is, even though I have duplicated values, I still want the data incorporated. How could one get around this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try calling
read_fwf()with argumentindex_col=Noneto tell it that there are no index columns (which must be unique over all rows) — it will automatically index rows with an integer starting at zero.