, attrs=None, ports=None, port_sep=None)[source]

Convert one or more attributes of a network to a pandas DataFrame.

  • ntwk (Network object) – the network to write

  • attrs (list Network attributes) – like [‘s_db’,’s_deg’]

  • ports (list of tuples) – list of port pairs to write. defaults to ntwk.port_tuples (like [(0,0)])

  • port_sep (string) – defaults to None, which means a empty string “” is used for networks with lower than 10 ports. (s_db 11, s_db 21) For more than ten ports a “_” is used to avoid ambiguity. (s_db 1_1, s_db 2_1)



Return type:

pandas DataFrame Object