Название: SAS Viya
Автор: Kevin D. Smith
Издательство: Ingram
Жанр: Программы
isbn: 9781629608839
isbn:
In [88]: swat.set_option('cas.dataset.max_rows_fetched', 500)
In [89]: swat.set_option('dataset.max_rows_fetched', 500)
In [90]: swat.set_option('max_rows_fetched', 500)
The swat.describe_option also works with patterns that match the beginning of multiple option names. This means that you can display all cas.dataset options by just giving the cas.dataset prefix as an argument to swat.describe_option.
In [91]: swat.describe_option('cas.dataset')
cas.dataset.max_rows_fetched : int
The maximum number of rows to fetch with methods that use
the table.fetch action in the background (i.e. the head, tail,
values, etc. of CASTable).
[default: 3000] [currently: 500]
cas.dataset.auto_castable : boolean
Should a column of CASTable objects be automatically
created if a CASLib and CAS table name are columns in the data?
NOTE: This applies to all except the 'tuples' format.
[default: True] [currently: True]
This same technique also works to reset a group of options using swat.reset_option. In either case, you must specify full segment names (for example, cas.dataset), and not just any substring (for example, cas.data).
The swat.options Object
In addition to the option functions in the SWAT package, there is an object-based interface as well: swat.options. This method of settings options is just like using the Pandas options object.
Much like using describe_option without any arguments, using Python’s Help system, you can also display all of the option descriptions with swat.options?.
In [92]: swat.options?
Type: AttrOption
String form: <swat.utils.config.AttrOption object at 0x269a0d0>
File: swat/utils/config.py
Definition: swat.options(self, *args, **kwargs)
Docstring
cas.dataset.auto_castable : boolean
Should a column of CASTable objects be automatically
created if a CASLib and CAS table name are columns in the data?
NOTE: This applies to all except the 'tuples' format.
[default: True] [currently: True]
cas.dataset.bygroup_as_index : boolean
If True, any by group columns are set as the DataFrame index.
[default: True] [currently: True]
cas.dataset.bygroup_collision_suffix : string
Suffix to use on the By group column name when a By group column
is also included as a data column.
[default: _by] [currently: _by]
... truncated ...
Tab completion can also be used to see what options are available.
Конец ознакомительного фрагмента.
Текст предоставлен ООО «ЛитРес».
Прочитайте эту книгу целиком, купив полную легальную версию на ЛитРес.
Безопасно оплатить книгу можно банковской картой Visa, MasterCard, Maestro, со счета мобильного телефона, с платежного терминала, в салоне МТС или Связной, через PayPal, WebMoney, Яндекс.Деньги, QIWI Кошелек, бонусными картами или другим удобным Вам способом.