🤬
  • Update telepathy.py

    For further analysis with Gephi, index column must be dropped; otherwise it will return an error while trying to find 'Source' and 'Target' columns of edgelist
  • Loading...
  • Matteo Fasulo committed with GitHub 1 year ago
    1d34d4de
    1 parent f58756bc
  • ■ ■ ■ ■
    src/telepathy/telepathy.py
    skipped 800 lines
    801 801   with open(
    802 802   self.edgelist_file, "w+", encoding="utf-8"
    803 803   ) as save_forwards:
    804  - forwards_df.to_csv(save_forwards, sep=";")
     804 + forwards_df.to_csv(save_forwards, sep=";", index=False) # missing index=False (Gephi issue)
    805 805   
    806 806   if self.json_check:
    807 807   forwards_df.to_json(
    skipped 1263 lines
Please wait...
Page is in error, reload to recover