skrf.network.Network.to_dataframe

Network.to_dataframe(attrs=None, ports=None, port_sep=None)[source]

Convert attributes of a Network to a pandas DataFrame.

Use the same parameters than skrf.io.general.network_2_dataframe()

Parameters:
  • attrs (list of string) – Network attributes to convert, 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) For consistent behaviour it’s recommended to specify “_” or “,” explicitly.

Returns:

df

Return type:

pandas.DataFrame