标签云

微信群

扫码加入我们

WeChat QR Code


You have a working method with only two lines of code. What would you consider better?

2018年10月23日57分04秒

if by "better" you mean more dynamically read out different types of rows, then you may open and iterate the CSV and process it line by line, as long as you have fixed patterns to extract, for example, two columns means information, three columns means data.

2018年10月23日57分04秒

How would you want this output to look like? Two arrays? Two dat frames? Everything together in a data frame with NaNs filling the missing spaces?

2018年10月23日57分04秒

It just feels like need to open the file twice. I am thinking that read in the file one time, and then do further processing.

2018年10月23日57分04秒