diff --git a/google/colab/_reprs.py b/google/colab/_reprs.py index ab38db9b..2d1e6116 100644 --- a/google/colab/_reprs.py +++ b/google/colab/_reprs.py @@ -189,6 +189,9 @@ def _summarize_dataframe(df, variable_name): 'fields': columns, }, indent=2, + # This is used for serializing any types unknown to Python's json + # serialization. + default=str, ) except Exception: # pylint: disable=broad-except return None