diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 493b946b209d7..461cfa4276cad 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -462,6 +462,9 @@ def __repr__(self): return com.console_encode(value) return com.console_encode(buf.getvalue()) + def _repr_html_(self): + return self.to_html() + def __iter__(self): """ Iterate over columns of the frame.