기본 콘텐츠로 건너뛰기

[matplotlib] 등고선(Contour)

[pandas] pd.Timestamp

pd.Timestamp

Timestamp는 한 시점을 나타내기 위해 사용됩니다.

  • pd.Timestamp(x, unit, tz, year, month, day, hour)
    • x를 timstamp로 전환
    • x: str, int 등의 자료형으로 날짜 또는 시간
    • unit: x의 단위로, 초 “s”, 일 “d”등
    • tz: 시간대 지정
    • x대신 year, month, day, hour를 각각 지정할 수 있슴, str 또는 int 등
x=pd.Timestamp(2019, 12, 25);x
Timestamp('2019-12-25 00:00:00')
type(x)
pandas._libs.tslibs.timestamps.Timestamp
pd.Timestamp(year=2019, month=1, day=2, tz="Asia/Seoul")
Timestamp('2019-01-02 00:00:00+0900', tz='Asia/Seoul')
pd.Timestamp(year=2019, month=1, day=2, tz="US/Pacific")
Timestamp('2019-01-02 00:00:00-0800', tz='US/Pacific')

댓글