I have two lists of data here: dm and dmHalo (see attached image). Theses are the same lists, the only difference is that dm was exported to a csv file and then reimported, while dmHalo was generated in the notebook session.
When I go to run an interpolation on the data set the interpolation does not recognize the csv imported data, as seen in the error message. I assume this is due to a change in formatting, but I am at a loss at how to revert to the native format.
Does anyone have an idea of how to do this?
Thanks you for your help!



Head /@ {dm, dmHalo}– Rohit Namjoshi May 20 '21 at 21:59First[dm] // InputFormand if there are quotes (") around the numbers, you've imported text instead of numbers. How did you export and import to CSV (ExportandImport)? Please show the code you used. – creidhne May 20 '21 at 22:24halo38 = Import["row_data/avgTables_halo38.csv"]; dm = halo38[[5]][[2]]I used this. I now realize dm is imported as a string and not as a list.Is there a way to import as a List? I've tried importing with the keywords "Data", "Table", and "List" and nothing has worked.
Thank you all!
– asorlik May 21 '21 at 19:17Export[{"row_data/avgTables_halo1.csv"}, halo1]Without adding "List" to the specifications so I'm not sure if I an recover the format in an easy way.
– asorlik May 21 '21 at 19:20Export["row_data/testHalo.csv", dmHalo, "Data"]and it imported as a List. My problem now is that I have a large set of data that would take a long time to regenerate in the right format. Is there a way to salvage all of the data I have saved as strings? – asorlik May 21 '21 at 19:34ToExpression @ dm. – Rohit Namjoshi May 21 '21 at 22:00