We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
df = dataframe.DataFrame([["cat", datetime.datetime(year=2021, month=1, day=23)], ["cat", datetime.datetime(year=2021, month=5, day=19)] ["dog", datetime.datetime(year=2021, month=7, day=4)]], columns=["animal","when"])
This code is missing a comma at the end of the second line. This leads to the following error message:
Traceback (most recent call last): .star:25:2: in <toplevel> .star:7:29: in f Error: list index: got tuple, want int
We can detect this situation, and wrap the error so it displays this:
Error: list index: got tuple, want int (did you miss a trailing comma?)
The text was updated successfully, but these errors were encountered:
dustmop
No branches or pull requests
This code is missing a comma at the end of the second line. This leads to the following error message:
We can detect this situation, and wrap the error so it displays this:
The text was updated successfully, but these errors were encountered: