Jan-26-2023, 09:01 PM
(This post was last modified: Jan-26-2023, 09:01 PM by deanhystad.)
Why are you using locals()? You should almost never use locals(). Is using locals() some weird conda notebook thing? If you can get locals()[ndarray_name], it means there is a local variable that references the same object as locals()[ndarray_name). Why not use the variable?
x = "Hello World" print(x) print(locals()["x"])
Output:Hello World
Hello World
Your csv file will not have any column names. Is that consistent? I honestly don't know. Do you use csv files as some kind of persistent storage?