I have some problem with uploding excel data in python.
Excel:

Code used to upload:
import pandas as pd
from google.colab import files
#uploaded = files.upload()
import io
df2 = pd.read_csv(io.BytesIO(uploaded['nodes.csv']),index_col=0)
print (df2)
Result:

Can you kindly help me?
You said you wanted to convert the imported data to a numpy array, you could do so by doing the following without using pandas:
Check the documentation: https://numpy.org/doc/stable/reference/generated/numpy.genfromtxt.html