Hello, I am a daft newbie - when querying a column...
# general
d
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
Hi! Welcome :) What is your overall use-case here?
d
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
Gotcha Yes that’s the best way right now — retrieve your data as a Python dictionary and the rest is just Python!
d
Great, thanks for the fast answer