IdataFormat#

class pymc_marketing.data.idata.io.IdataFormat(*values)[source]#

Inference-data formats save_idata() writes.

The value is the format name accepted by autolog(idata_format=...); suffix is the file suffix that selects the format in a path.

Methods

IdataFormat.replace(old, new[, count])

Return a copy with all occurrences of substring old replaced by new.

IdataFormat.split(/[, sep, maxsplit])

Return a list of the substrings in the string, using sep as the separator string.

IdataFormat.rsplit(/[, sep, maxsplit])

Return a list of the substrings in the string, using sep as the separator string.

IdataFormat.join(iterable, /)

Concatenate any number of strings.

IdataFormat.capitalize(/)

Return a capitalized version of the string.

IdataFormat.casefold(/)

Return a version of the string suitable for caseless comparisons.

IdataFormat.title(/)

Return a version of the string where each word is titlecased.

IdataFormat.center(width[, fillchar])

Return a centered string of length width.

IdataFormat.expandtabs(/[, tabsize])

Return a copy where all tab characters are expanded using spaces.

IdataFormat.partition(sep, /)

Partition the string into three parts using the given separator.

IdataFormat.ljust(width[, fillchar])

Return a left-justified string of length width.

IdataFormat.lower(/)

Return a copy of the string converted to lowercase.

IdataFormat.lstrip([chars])

Return a copy of the string with leading whitespace removed.

IdataFormat.rjust(width[, fillchar])

Return a right-justified string of length width.

IdataFormat.rstrip([chars])

Return a copy of the string with trailing whitespace removed.

IdataFormat.rpartition(sep, /)

Partition the string into three parts using the given separator.

IdataFormat.splitlines(/[, keepends])

Return a list of the lines in the string, breaking at line boundaries.

IdataFormat.strip([chars])

Return a copy of the string with leading and trailing whitespace removed.

IdataFormat.swapcase(/)

Convert uppercase characters to lowercase and lowercase characters to uppercase.

IdataFormat.upper(/)

Return a copy of the string converted to uppercase.

IdataFormat.isascii(/)

Return True if all characters in the string are ASCII, False otherwise.

IdataFormat.islower(/)

Return True if the string is a lowercase string, False otherwise.

IdataFormat.isupper(/)

Return True if the string is an uppercase string, False otherwise.

IdataFormat.istitle(/)

Return True if the string is a title-cased string, False otherwise.

IdataFormat.isspace(/)

Return True if the string is a whitespace string, False otherwise.

IdataFormat.isdecimal(/)

Return True if the string is a decimal string, False otherwise.

IdataFormat.isdigit(/)

Return True if the string is a digit string, False otherwise.

IdataFormat.isnumeric(/)

Return True if the string is a numeric string, False otherwise.

IdataFormat.isalpha(/)

Return True if the string is an alphabetic string, False otherwise.

IdataFormat.isalnum(/)

Return True if the string is an alpha-numeric string, False otherwise.

IdataFormat.isidentifier(/)

Return True if the string is a valid Python identifier, False otherwise.

IdataFormat.isprintable(/)

Return True if all characters in the string are printable, False otherwise.

IdataFormat.zfill(width, /)

Pad a numeric string with zeros on the left, to fill a field of the given width.

IdataFormat.__init__(*args, **kwds)

Attributes

IdataFormat.suffix

File suffix of the format, for example ".zarr".

IdataFormat.NETCDF

IdataFormat.ZARR