Python脚本删除没有数据没有足够内存的变量?

2024-09-30 06:15:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是一个SPSS(v.24)数据文件,它有47000个变量,其中大部分是空的(所有的值都丢失了)。我想删除只包含缺失数据的变量。你知道吗

我尝试了以下spssaux2 python脚本:

begin program.
import spssaux2

spssaux2.FindEmptyVars(delete=True)
end program.

一开始似乎工作正常,但后来我发现以下错误:

The AGGREGATE command specifies too many break variables plus new variables. Run with more memory

如果你能提供帮助,我将不胜感激。你知道吗


Tags: the数据import脚本true数据文件错误variables

热门问题