bigframes.pandas.DatetimeIndex#
- class bigframes.pandas.DatetimeIndex(data=None, dtype=None, *, name=None, session=None)[source]#
Immutable sequence used for indexing and alignment with datetime-like values
Attributes
Return the transpose, which is by definition self.
The day of the datetime.
The day of the week with Monday=0, Sunday=6.
The day of the week with Monday=0, Sunday=6.
Return the dtype object of the underlying data.
Return the dtypes as a Series for the underlying MultiIndex.
Returns True if the Index is empty, otherwise returns False.
Check if the Index has duplicate values.
Return a boolean if the values are equal or decreasing.
Return a boolean if the values are equal or increasing.
Return if the index has unique values.
The month as January=1, December=12.
Returns Index name.
Returns the names of the Index.
Number of dimensions of the underlying data, by definition 1.
Integer number of levels in this MultiIndex
BigQuery job metadata for the most recent query.
Return a tuple of the shape of the underlying data.
Return the number of elements in the underlying data.
Vectorized string functions for Series and Index.
Return an array representing the data in the Index.
The day of the week with Monday=0, Sunday=6.
The year of the datetime
Methods
__init__()all()Return whether all elements are Truthy.
any()Return whether any element is Truthy.
argmax()Return int position of the largest value in the Series.
argmin()Return int position of the smallest value in the series.
astype(dtype, *[, errors])Create an Index with values cast to dtypes.
copy([name])Make a copy of this object.
drop(labels)Make new Index with passed list of labels deleted.
drop_duplicates(*[, keep])Return Index with duplicate values removed.
dropna([how])Return Index without NA/NaN values.
fillna([value])Fill NA (NULL in BigQuery) values using the specified method.
from_frame(frame)Make a MultiIndex from a DataFrame.
get_level_values(level)Return an Index of values for requested level.
get_loc(key)Get integer location, slice or boolean mask for requested label.
isin(values)Return a boolean array where the index values are in values.
item()Return the first element of the underlying data as a Python scalar.
max()Return the maximum value of the Index.
min()Return the minimum value of the Index.
nunique()Return number of unique elements in the object.
rename(name, *[, inplace])Alter Index or MultiIndex name.
sort_values(*[, inplace, ascending, na_position])Return a sorted copy of the index.
to_list(*[, allow_large_results])to_numpy([dtype, allow_large_results])A NumPy ndarray representing the values in this Series or Index.
to_pandas(*[, allow_large_results, dry_run])Gets the Index as a pandas Index.
to_series([index, name])Create a Series with both index and values equal to the index keys.
Return the transpose, which is by definition self.
unique([level])Returns unique values in the index.
value_counts([normalize, sort, ascending, ...])Return a Series containing counts of unique values.