Anonymous
Not applicable

The

display()
function requires a collection as opposed to single item, so any of the following examples will give you a means to displaying the results:

  • `display([df.first()])` # just make it an array
  • display(df.take(1))
    # take w/ 1 is functionally equivalent to first(), but returns a DataFrame
  • display(df.limit(1))
    # I'm not 100% sure this is guaranteed to be ordered, but it's another option to try that returns a DataFrame