Can memmap pandas series. What about a dataframe?

后端 未结 2 806
粉色の甜心
粉色の甜心 2020-12-05 06:02

It seems that I can memmap the underlying data for a python series by creating a mmap\'d ndarray and using it to initialize the Series.

        def assert_re         


        
2条回答
  •  臣服心动
    2020-12-05 06:06

    If you change your DataFrame constructor to add the parameter copy=False you will have the behavior you want. https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html

    Edit: Also, you want to use the underlying ndarray (rather than the pandas series).

提交回复
热议问题