Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tfs_pandas writer: misleading error-message if two columns have the same name #142

Open
JoschD opened this issue Jun 26, 2018 · 0 comments
Assignees
Labels

Comments

@JoschD
Copy link
Member

JoschD commented Jun 26, 2018

The tfs writer crashes with:
AttributeError: dtype is not in the DataFrame or headers.
when two columns have the same name.
If we do not want to allow that in the first place, we should have a check in e.g. _validate()

Example Code:

from utils import tfs_pandas as tfs
df = tfs.TfsDataFrame([1,2,3,4], index=["A"], columns=["B", "B", "C", "D"])
tfs.write_tfs("test.tfs", df)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants