Hello, I am a daft newbie - when querying a column of a daft Dataframe, e.g.: df["myCol"] - how to get the first value of the column and initialise a python variable? For now, I did: my_val = df.to_pydict()["myCol"][0]. Is this the right way? thanks in advance...
j
jay
11/18/2024, 5:20 PM
Hi! Welcome :)
What is your overall use-case here?
d
delasoul
11/18/2024, 5:30 PM
Hello, for now mostly trying things out:) I have json files stored on ADLS2 and run a .from_glob_path() function. Then I wanted to assign the path of the first file in the returned Dataframe to a python variable.
j
jay
11/18/2024, 5:31 PM
Gotcha
Yes that’s the best way right now — retrieve your data as a Python dictionary and the rest is just Python!