Python: handling a large set of data. Scipy or Rpy? And how?

前端 未结 6 580
我在风中等你
我在风中等你 2021-02-04 17:47

In my python environment, the Rpy and Scipy packages are already installed.

The problem I want to tackle is such:

1) A huge set of financial data are stored in

6条回答
  •  被撕碎了的回忆
    2021-02-04 18:34

    Neither Rpy or Scipy is necessary, although numpy may make it a bit easier. This problem seems ideally suited to a line-by-line parser. Simply open the file, read a row into a string, scan the row into an array (see numpy.fromstring), update your running sums and move to the next line.

提交回复
热议问题