skrf.io.general.network_2_spreadsheet
- skrf.io.general.network_2_spreadsheet(ntwk, file_name=None, file_type='excel', form='db', *args, **kwargs)[source]
Write a Network object to a spreadsheet, for your boss.
Write the s-parameters of a network to a spreadsheet, in a variety of forms. This functions makes use of the pandas module, which in turn makes use of the xlrd module. These are imported during this function call. For more details about the file-writing functions see the pandas.DataFrom.to_??? functions.
Note
The frequency unit used in the spreadsheet is take from ntwk.frequency.unit
- Parameters:
ntwk (
Network
object) – the network to writefile_name (str, Path or None) – the file_name to write. if None, ntwk.name is used.
file_type (['csv','excel','html']) – the type of file to write. See pandas.DataFrame.to_??? functions.
form ('db','ma','ri') – format to write data, * db = db, deg * ma = mag, deg * ri = real, imag
*args – passed to pandas.DataFrame.to_??? functions.
**kwargs – passed to pandas.DataFrame.to_??? functions.
See also
networkset_2_spreadsheet
writes a spreadsheet for many networks