I have this for loop in Julia:
for country in countries_data_labels
new_dataframe = get_country(df, country)
new_dataframe = DataFrame(new_dataframe)
df_rows, df_columns = size(new_dataframe)
new_dataframe_long = stack(new_dataframe, begin:end-4)
y_axis[!, Symbol("$country")] = new_dataframe_long[!, :value]
end
and Iโm getting this error:
syntax: extra token ")" after end of expression
I decided to comment all of the body of the for loop except the 1st one and ran the cell each time after uncommenting to see which line was throwing this error and it was the 4th line in the body:
new_dataframe_long = stack(new_dataframe, begin:end-4)
There is no reason for this error to exist. There are no extra bracket pieces in this line.