Every line of 'datetimeindex pandas' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
302 def to_pandas(self) -> None: 303 '''Return a Pandas Index. 304 ''' 305 raise NotImplementedError('Pandas does not support a year month type, and it is ambiguous if a date proxy should be the first of the month or the last of the month.')
553 def to_datetime(self, dayfirst=False): 554 """ 555 DEPRECATED: use :meth:`to_timestamp` instead. 556 557 Cast to DatetimeIndex. 558 """ 559 warnings.warn("to_datetime is deprecated. Use self.to_timestamp(...)", 560 FutureWarning, stacklevel=2) 561 return self.to_timestamp()
653 def set_index_post_series(df, index_name, drop, column_dtype): 654 df2 = df.drop("_partitions", axis=1).set_index("_index", drop=True) 655 df2.index.name = index_name 656 df2.columns = df2.columns.astype(column_dtype) 657 return df2
10 def date_range(start=None, end=None, periods=None, freq=None): 11 return DatetimeIndex(start=start, end=end, periods=periods, offset=freq)