-1
我需要將列從unicode轉換爲str。 我嘗試熊貓:AttributeError:'str'對象沒有屬性'iloc'
f.edge(str(group['subdomain']).iloc[i], str(group['subdomain'].iloc[i+1]),
label=str(group['search_term'].iloc[i+1]))
但它返回AttributeError: 'str' object has no attribute 'iloc'
我該如何解決呢?更遠
str(group['subdomain']).iloc[i]
# ^
移動括號到右:
你能幫助解決這個問題? '錯誤:邊長208568.346597大於允許的最大值65535。 檢查整個節點(s).' – ldevyataykina
@ldevyataykina很難說沒有回溯和相關代碼的問題真的是什麼。您可以考慮將此作爲一個新問題。 –