I have a list of text strings that represents rows and columns and I want to convert it to a pandas dataframe.
Right now I use copy-paste of the text to an editor, then save it as a csv file and then read it using pd.read_csv(). I am certain though that this can be automated somehow.
For a reproducible example, consider the following list:
['Symbol,Description,Qty,Trade Price,Mark,Mark Value,P/L Day,P/L Open,P/L ', 'AXTI,AXT INC COM,+90,10.79,9.46,851.40,0.00,-119.70,-12.33', 'INTT,INTEST CORP COM,+50,5.64,5.02,251.00,0.00,-31.00,-10.99', 'ACMR,ACM RESEARCH INC COM CL A,+201,80.9374,73.20,14713.20,0.00,-1,555.21,-9.56', 'ASUR,ASURE SOFTWARE INC COM,+90,7.70,7.20,648.00,0.00,-45.00,-6.49']