Sep-27-2022, 05:06 AM
Hello everyone, I would like to ask about how to write from a dictionary into excel.
The program that I have written so far:
The program that I have written so far:
import numpy as np
import pandas as pd
n = 3
N = pow(2, n)
ilr_arr = np.zeros((n+1, N))
ilr_dict = dict()
for idp in range(n + 1):
a = pow(2, idp)
b = pow(2, n - idp)
ilr_dict[idp] = np.reshape(ilr_arr[idp], (a, b))
for ing in range(a):
interleaver = np.arange(pow(2, n - idp))
np.random.shuffle(interleaver)
ilr_dict[idp][ing] = interleaver
# df = pd.DataFrame(data=ilr_dict[idp], index=[0]) when I use this syntax, it become error.If there are any suggestions about this, please tell me.
