Detail: IndexMicrosecond: Accessor String
Overview: IndexMicrosecond: Accessor String
- IndexMicrosecond.via_str.__getitem__(key)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.__getitem__(key)[source]
Return a container with the provided selection or slice of each element.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str[-1] ['0' '0' '0']
- IndexMicrosecond.via_str.capitalize
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.capitalize()[source]
Return a container with only the first character of each element capitalized.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.capitalize() ['1517-04-01t00:00:00.000000' '1517-12-31t00:00:00.000000' '1517-06-30t00:00:00.000000']
- IndexMicrosecond.via_str.center(width, fillchar)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.center(width, fillchar=' ')[source]
Return a container with its elements centered in a string of length
width
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.center(8) ['1517-04-' '1517-12-' '1517-06-']
- IndexMicrosecond.via_str.contains(item)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.contains(item)[source]
Return a Boolean container showing True of item is a substring of elements.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.contains('X') [False False False]
- IndexMicrosecond.via_str.count(sub, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.count(sub, start=0, end=None)[source]
Returns a container with the number of non-overlapping occurrences of substring sub in the optional range
start
,end
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.count('X') [0 0 0]
- IndexMicrosecond.via_str.decode(encoding, errors)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.decode(encoding=None, errors=None)[source]
Apply str.decode() to each element. Elements must be bytes.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')).astype(bytes) >>> ix <Index> b'1517-04-01T00:00:00.000000' b'1517-12-31T00:00:00.000000' b'1517-06-30T00:00:00.000000' <|S45> >>> ix.via_str.decode() ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.encode(encoding, errors)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.encode(encoding=None, errors=None)[source]
Apply str.encode() to each element. Elements must be strings.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.encode() [b'1517-04-01T00:00:00.000000' b'1517-12-31T00:00:00.000000' b'1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.endswith(suffix, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.endswith(suffix, start=0, end=None)[source]
Returns a container with the number of non-overlapping occurrences of substring
suffix
(or an iterable of suffixes) in the optional rangestart
,end
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.endswith(' ') [False False False]
- IndexMicrosecond.via_str.find(sub, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.find(sub, start=0, end=None)[source]
For each element, return the lowest index in the string where substring
sub
is found.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.find('X') [-1 -1 -1]
- IndexMicrosecond.via_str.format(format)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.format(format)[source]
For each element, return a string resulting from calling the string
format
argument’sformat
method with the the element. Format strings (given within curly braces) can use Python’s format mini language: https://docs.python.org/3/library/string.html#formatspec- Parameters:
format – A string, an iterable of strings, or a mapping of labels to strings. For 1D containers, an iterable of strings must be of length equal to the container; a mapping can use Index labels (for a Series) or positions (for an Index). For 2D containers, an iterable of strings must be of length equal to the columns (for a Frame) or the depth (for an Index Hierarchy); a mapping can use column labels (for a Frame) or depths (for an IndexHierarchy).
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.format('{:-^10}') ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.index(sub, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.index(sub, start=0, end=None)[source]
Like
find
, but raisesValueError
when the substring is not found.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.index('X') ValueError('substring not found')
- IndexMicrosecond.via_str.isalnum
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isalnum()[source]
Returns true for each element if all characters in the string are alphanumeric and there is at least one character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isalnum() [False False False]
- IndexMicrosecond.via_str.isalpha
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isalpha()[source]
Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isalpha() [False False False]
- IndexMicrosecond.via_str.isdecimal
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isdecimal()[source]
For each element, return True if there are only decimal characters in the element.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isdecimal() [False False False]
- IndexMicrosecond.via_str.isdigit
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isdigit()[source]
Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isdigit() [False False False]
- IndexMicrosecond.via_str.islower
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.islower()[source]
Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.islower() [False False False]
- IndexMicrosecond.via_str.isnumeric
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isnumeric()[source]
For each element in self, return True if there are only numeric characters in the element.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isnumeric() [False False False]
- IndexMicrosecond.via_str.isspace
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isspace()[source]
Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isspace() [False False False]
- IndexMicrosecond.via_str.istitle
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.istitle()[source]
Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.istitle() [ True True True]
- IndexMicrosecond.via_str.isupper
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.isupper()[source]
Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.isupper() [ True True True]
- IndexMicrosecond.via_str.ljust(width, fillchar)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.ljust(width, fillchar=' ')[source]
Return a container with its elements ljusted in a string of length
width
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.ljust(8) ['1517-04-' '1517-12-' '1517-06-']
- IndexMicrosecond.via_str.len
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.len()[source]
Return the length of the string.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.len() [26 26 26]
- IndexMicrosecond.via_str.lower
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.lower()[source]
Return an array with the elements of self converted to lowercase.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.lower() ['1517-04-01t00:00:00.000000' '1517-12-31t00:00:00.000000' '1517-06-30t00:00:00.000000']
- IndexMicrosecond.via_str.lstrip(chars)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.lstrip(chars=None)[source]
For each element, return a copy with the leading characters removed.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.lstrip() ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.partition(sep)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.partition(sep)[source]
Partition each element around
sep
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.partition('X') [('1517-04-01T00:00:00.000000', '', '') ('1517-12-31T00:00:00.000000', '', '') ('1517-06-30T00:00:00.000000', '', '')]
- IndexMicrosecond.via_str.replace(old, new, count)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.replace(old, new, count=-1)[source]
Return a container with its elements replaced in a string of length
width
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.replace('X', '*') ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.rfind(sub, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.rfind(sub, start=0, end=None)[source]
For each element, return the highest index in the string where substring
sub
is found, such that sub is contained withinstart
,end
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.rfind('X') [-1 -1 -1]
- IndexMicrosecond.via_str.rindex(sub, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.rindex(sub, start=0, end=None)[source]
Like
rfind
, but raisesValueError
when the substringsub
is not found.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.rindex('X') ValueError('substring not found')
- IndexMicrosecond.via_str.rjust(width, fillchar)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.rjust(width, fillchar=' ')[source]
Return a container with its elements rjusted in a string of length
width
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.rjust(8) ['1517-04-' '1517-12-' '1517-06-']
- IndexMicrosecond.via_str.rpartition(sep)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.rpartition(sep)[source]
Partition (split) each element around the right-most separator.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.rpartition('X') [('', '', '1517-04-01T00:00:00.000000') ('', '', '1517-12-31T00:00:00.000000') ('', '', '1517-06-30T00:00:00.000000')]
- IndexMicrosecond.via_str.rsplit(sep, maxsplit)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.rsplit(sep, maxsplit=-1)[source]
For each element, return a tuple of the words in the string, using sep as the delimiter string.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.rsplit('X') [('1517-04-01T00:00:00.000000',) ('1517-12-31T00:00:00.000000',) ('1517-06-30T00:00:00.000000',)]
- IndexMicrosecond.via_str.rstrip(chars)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.rstrip(chars=None)[source]
For each element, return a copy with the trailing characters removed.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.rstrip() ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.split(sep, maxsplit)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.split(sep, maxsplit=-1)[source]
For each element, return a tuple of the words in the string, using sep as the delimiter string.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.split('X') [('1517-04-01T00:00:00.000000',) ('1517-12-31T00:00:00.000000',) ('1517-06-30T00:00:00.000000',)]
- IndexMicrosecond.via_str.startswith(prefix, start, end)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.startswith(prefix, start=0, end=None)[source]
Returns a container with the number of non-overlapping occurrences of substring prefix (or an iterable of prefixes) in the optional range
start
,end
.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.startswith('X') [False False False]
- IndexMicrosecond.via_str.strip(chars)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.strip(chars=None)[source]
For each element, return a copy with the leading and trailing characters removed.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.strip() ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.swapcase
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.swapcase()[source]
Return a container with uppercase characters converted to lowercase and vice versa.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.swapcase() ['1517-04-01t00:00:00.000000' '1517-12-31t00:00:00.000000' '1517-06-30t00:00:00.000000']
- IndexMicrosecond.via_str.title
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.title()[source]
Return a container with uppercase characters converted to lowercase and vice versa.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.title() ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.upper
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.upper()[source]
Return a container with uppercase characters converted to lowercase and vice versa.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.upper() ['1517-04-01T00:00:00.000000' '1517-12-31T00:00:00.000000' '1517-06-30T00:00:00.000000']
- IndexMicrosecond.via_str.zfill(width)
- IndexMicrosecond.via_str
Interface for applying string methods to elements in this container.
- InterfaceString.zfill(width)[source]
Return the string left-filled with zeros.
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30')) >>> ix <IndexMicrosecond> 1517-04-01T00:00:00.000000 1517-12-31T00:00:00.000000 1517-06-30T00:00:00.000000 <datetime64[us]> >>> ix.via_str.zfill(8) ['1517-04-' '1517-12-' '1517-06-']
IndexMicrosecond: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic