All Articles

TIL&TEL 22.09.26~22.10.02

TIL( Today I Learned)

22-09-26 월

  • WORKPLACE

    • PHASE 1 9-12 / 6

      • logger 적용 내용 정리
    • PHASE 2 13-16 / 6

    • PHASE 3 16-18 / 4

22-09-27 화

  • WORKPLACE

    • PHASE 1 9-12 / 6

      • 기획회의
    • PHASE 2 13-16 / 6

      • logger, connector 정보 전달 1|
    • PHASE 3 16-18 / 4

  • 22-09-28 수

    • WORKPLACE

      • PHASE 1 9-12 / 6

        • Flask Boilerplate search
      • PHASE 2 13-16 / 6

        • 프로젝트 초기 구조 잡기
      • PHASE 3 16-18 / 4

        • 프로젝트 구조 공유

22-09-29 목

22-09-30 금

  • WORKPLACE

    • PHASE 1 9-12 / 6

      • git Flow 정리,공유
    • PHASE 2 13-16 / 6

      • API 생성
    • PHASE 3 16-18 / 4

      • API 생성

TEL (Trial and Error Log)

22-09-30

  • ERROR: TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of ‘Index’

    • SITUATION:

      • df.groupby(pd.Grouper(key=‘event_time’, freq=‘1h’))
    • REASON:

      • df.empty
    • SOLUTION:

      • if df.empty: ...
  • ERROR: ValueError: len(left_on) must equal the number of levels in the index of “right”

    • SITUATION:

      • df.join(_df, …)
    • REASON:

      • index 갯수가 맞지 않아서
    • SOLUTION:

      • index column 편집
  • ERROR: TypeError: Too many parameters for typing.List; actual 3, expected 1

    • SITUATION:

      • pydantic validation
    • REASON:

      • List[] Typing
    • SOLUTION:

      • List[Union[A, B, C]] <= List[A,B,C]