When importing a .csv file, is there any way to read the data from the title of the header? Consider the .csv file in the following:
I mean, instead of start_node = round.(Int64, data[:,1]) is there another way to say "start_node" is the one in the .csv file that its header is "start node i"
# Importing packages
using DelimitedFiles
# Data Preparation
network_data_file = "network.csv"
network_data = readdlm(network_data_file, ',', header=true)
data = network_data[1]
header = network_data[2]
start_node = round.(Int64, data[:,1])
end_node = round.(Int64, data[:,2])
