0

当我尝试运行时出现此错误

vis = pyLDAvis.gensim.prepare(lda_model, corpus, dictionary=lda_model.id2word)

vis.

    385    # reorder all data based on new ordering of topics
    386    topic_freq       = topic_freq[topic_order]
--> 387    topic_term_dists = topic_term_dists.ix[topic_order]
    388    doc_topic_dists  = doc_topic_dists[topic_order]
    
AttributeError: 'DataFrame' object has no attribute 'ix'

It seems to be an issue with pyLDAvis and pandas
pyLDAvis 2.1.1
pandas 1.1.3
4

0 回答 0