teneto
teneto copied to clipboard
An error: The object 'TemporalNetwork' can't import dataframe data of weighted network
Hello!
I get a problems when I run the following:
In theory, I import a weighted network by the dataframe data. However, I get an unweighted network with TemporalNetwork object.
There is no error when I import the dataframe data, but when I continue to use the tnet
with other methods like networkmeasures.temporal_degree_centrality
, an error appears.
I can solve my problem with other importing method like list of edge, but I wonder why this situation happens.
Thanks for raising this. Looks like a bug when importing dataframes! Will take a look.
Thanks for prompt reply. Looking forward to your improvement!
Update after digging around, looks like the weights are not getting included when importing from df into TemporalNetwork (should have been spotted a long time ago).