Livebook Smart Block Cannot Find Dataframe

Hello!

Sorry to ask such a basic question but I am in a bit of a rush.

In a new livebook I have instantiated a Explorer dataframe with the from_csv/1 command

order_sets = DF.from_csv("path_to_file.csv")

and running that block clearly returns the data frame I expect.

However, when I instantiate a smart block cell for data transformation beneath, Im get the message “The Data Transform smart cells works with Explorer DataFrames but none was found.”

Does anyone know what I am doing wrong?

THANKS!!!

It’s because DF.form_csv returns {:ok, df} tuple, so order_sets is a tuple, instead of a dataframe. You can use DF.from_csv! or pattern match on the :ok tuple : )

2 Likes

ughhhh thank you!!!