from itertools import combinations
import numpy as np
resList=[]
resListTmp=[]
resListTmp2=[]
dataframe = pd.read_excel("C:\\Users\\user\\Desktop\\testData.xlsx",index_col=False,header=None)
for j in range(0, len(dataframe.columns)):
for k in range (0,len(dataframe)+1):
for xVals in list(combinations(dataframe.iloc[k:i,j], i)):
if list(xVals) not in resListTmp:
resListTmp.append(list(xVals))
resListTmp2.append(resListTmp)
resList.append(resListTmp2)
print(resList)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:58:35 |
Calls: | 10,389 |
Calls today: | 4 |
Files: | 14,061 |
Messages: | 6,416,856 |
Posted today: | 1 |