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

ValueError: Only callable can be used as callback in DataFrame Creation #2

Open
mumthazbeegumm opened this issue Sep 18, 2023 · 1 comment

Comments

@mumthazbeegumm
Copy link

I encountered an issue when attempting to execute the code due to a "ValueError: Only callable can be used as a callback" error in the "parser.py" file at line number 28. Specifically, the problem arose when I tried to create a DataFrame using the pandas library with the provided column names. Here is the code snippet that triggered the error:

df = pd.DataFrame(columns=[DATASET, ORIGIN, PAIR_ID, ID1, ID2, TEXT1, TEXT2, PARAPHRASE, PARAPHRASE_TYPE, SPLIT])

I kindly request your assistance in resolving this issue.

@jonas-becker
Copy link
Owner

Hello. I can not reproduce the issue.
Do you have the correct pandas version installed? (1.4.2)
Ideally, please do a fresh install of the dependencies using the requirements.txt file and completely restart your python session.

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

No branches or pull requests

2 participants