I create a temporary "country" table from dataframe whcih contains all the rows were : country_code_destination
is null:
df_country=df.where(df.country_code_destination.isNull()).registerTempTable("country")
Then, I would like to export this temptable into a csv file :
%%sql -q -o qry_country
SELECT * FROM country
%%local
qry_country.to_csv("country_code_null.csv", sep=';')
But the problem is that in the "country_code_null.csv" file, i do not find the "country_code_destination" column. There is all the column except the "country_code_destination".
Any idea to help to resolve this problem please?
Thanks