wanna use pyvis library of python with code below, but the Results is always an Error, which says something with Indented wrong is. I used KI and double checked everything, but didnt notice anything.
I though there might be a problem with Pyvis, tried to upgrade it, but doesn’t work.
Can you please take a look at it?
Thanks a lot
import pandas as pd
from pyvis.network import Network
#pip install --upgrade pyvis
# Datei laden
file_path = 'BeispielDatei.csv'
data = pd.read_csv(file_path)
net = Network()
artists = data['artists'].unique()
for artist in artists:
net.add_node(artist)
for index, row in data.iterrows():
for feature in row['features']:
if row['artists']! = feature:
net.add_edge(row['artists'], feature)
File Link