-
Notifications
You must be signed in to change notification settings - Fork 21
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: Can't clean for JSON #35
Comments
I have the same issue while ioiterate through my dataframes!!!! :( |
I don't know anything specific about your cases, but in general |
I have the same issue, and everything worked before I added an |
If someone could please share some code to reproduce this error I might be able to help. |
@vidartf Here's my minimum contrived example that produces this bug: from IPython import get_ipython
import datetime
import pandas as pd
def dataframe_formatter(df):
return { 'application/the21st': { 'rows': [{'datetime': datetime.time(10, 0) }]} }
get_ipython().display_formatter.mimebundle_formatter.for_type(pd.DataFrame, dataframe_formatter) Displaying any dataframe in jupyter then produces an error with stack trace: error
|
@the21st But that code doesn't use the |
@vidartf you're right. I think it might an issue in Edit: I opened an issue there ipython/ipykernel#546 |
Well, as there isn't a standard JSON primitive for dates, you would be responsible for serializing the data/datetime/time object yourself. |
I'm using DataFrame from Traittypes and I'm getting the error
ValueError: Can't clean for JSON
. I'm showing in the output that I have a normal dataframedf1
... not sure what could be causing the issue?The text was updated successfully, but these errors were encountered: