#Reading and updating .csv in Java

1 messages · Page 1 of 1 (latest)

remote nova
#

I know py and dataframes are usually used for this purpose, but in Java what is the optimal way to do this?
Currently I am using List<String>, is there a better way?

spring wedgeBOT
#

This post has been reserved for your question.

Hey @remote nova! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

frozen dove
#

Generally for me I find it relatively simple to make a parser. I use either buffered reader or scanner to read in each line, then use .split to separate values based on commas

cedar crag
#

Depends on the use case, though if you are used to using data frames you may want to look into using a HashMap as that is the data structure most similar to a dataframe

sour idol
#

No, HashMaps are not at all similar to pandas dataframes