Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 575294449
  • Loading branch information
blois authored and colaboratory-team committed Oct 20, 2023
1 parent 7863fe0 commit 5316b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/colab/_reprs.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _dataframe_intrinsic_repr(dataframe):
found = True
break
if not found:
last_line = ip.user_ns['In'][-1]
last_line = ip.user_ns['In'][-1].strip().rpartition('\n')[-1]
varname, dot, operator = last_line.partition('.')
if varname.isidentifier() and dot and operator.startswith('head('):
import pandas as pd
Expand Down

0 comments on commit 5316b07

Please sign in to comment.