1.package install
!pip install factanal
2.package importpackage 설명은 링크
import pandas as pd
import random
from factanal.wrapper import factanal
3.dataframe 생성
pdf = pd.DataFrame({"v1": [random.randint(0, 100) for _ in range (30)],
"v2": [random.randint(0, 100) for _ in range (30)],"v3": [random.randint(0, 100) for _ in range (30)],"v4": [random.randint(0, 100) for _ in range (30)],"v5": [random.randint(0, 100) for _ in range (30)],"v6": [random.randint(0, 100) for _ in range (30)],"v7": [random.randint(0, 100) for _ in range (30)],"v8": [random.randint(0, 100) for _ in range (30)]})
댓글 없음:
댓글 쓰기