2 ответов
+ 3
if you want to bring data in from excel, you have a few options with openpyxl, pandas, and other python modules. i mainly use pandas and you can convert the pandas dataframe to a numpy array to create your matrixes. an example would be:
import numpy as np
import pandas as pd
# type path to file here with excel extension
file = “c:\\path\\file.xlsx”
# by default this only reads the first sheet. you can use sheet_name option to read a specific sheet name or index or all.
df = pd.read_excel(file)
matrix = df.to_numpy()
0
Thabk you soooo much i'll proceed as you said