I’ve been working through some online tutorials that are HTML versions of Notebooks and some of them show this sort of thing:
In [9]: df2 = pd.DataFrame({'A': 1.,
...: 'B': pd.Timestamp('20130102'),
...: 'C': pd.Series(1, index=list(range(4)), dtype='float32'),
...: 'D': np.array([3] * 4, dtype='int32'),
...: 'E': pd.Categorical(["test", "train", "test", "train"]),
...: 'F': 'foo'})
...:
I can’t find any references to
…:
online, although I did find a single reference to
…
as the “secondary prompt” for an interactive Python shell session. I am guessing that
…:
was originally a part of iPython / Jupyter Notebooks and is no longer required for line continuation? But, apparently, it’s OK to include and is ignored by the interpreter?
Is there any documentation for this? Is it deprecated?