| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
- aiohttp
- Asyncio
- pandas #python #excel #판다스 #파이썬 #엑셀저장 #xlsxwriter
- git
- version_error
- python #pandas #data_preprocessing #data_process
- 깃
- TensorFlow
- tensorflow #tensorflow-gpu #python #ubuntu #텐서플로우
- Python
- MachineLearning
- fashionmnist
- ngrok
- 시계열데이터
- REST_API
- 비동기모듈
- mnist
- AI #RNN #LSTM #LSTMP #인공지능 #언어학습 #순차학습
- 판다스 #Pandas #DataFrame #Statistics #통계 #파이썬 #Python #Resample
- tf.where
- AI #Inductive_Bias #Relational_inductive_bias
- SQL #python #MySQL #PostgreSQL
- 파이썬
- Github
- 특정값지우기
- 선형회귀
- SQL #PostgreSQL
- 깃허브
- pandas #ewma #python #지수이동가중평균 #파이썬 #판다스 #ema #ewm
- pandas #python #date #datetime
- Today
- Total
목록Python/Python (2)
린스토리
코드 실행을 하다가 str 변환 구문에서 에러가 났다. 왜 생긴 에러인지, 어떻게 해결하는지 알아보자. 에러가 나온 부분의 코드는 다음과 같았다. user = self.train_user_df['user_id'][row] # type: str hardware_label.setText(str(train_setting_log[str(user)]['hardware'])) user의 type을 print했을 때, 로 나온다. 두번째 줄의 코드에서 보면, dictionary의 키로 user를 넘기는데, 이미 str인 타입에 또 한 번 str로 감싼 것을 볼 수 있다. 은 다음과 같이 정의된다. 기본적으로 str로 형변환을 할 때, encoding default로 'utf-8'이 적용된다. 그런데 이미 타입이 st..
Key 와 Value로 이루어진 Dictionary에서 특정 value를 가진 key를 삭제하고 싶을 때, RuntimeError: dictionary changed size during iteration 이런 에러를 만났다. 해결하는 방법에 대해 알아보자. 이렇게 dictionary를 만들었다. value가 4000인 key를 지우고자 다음과 같이 코드를 작성해보았다. for key in test_dict.keys(): if test_dict[key] == 4000: test_dict.pop(key) 그랬더니, 이런 에러가 나왔다. Dictionary에서 값을 지우고 싶을 때는 두 가지 방법이 있는데, 1. Pop () 2. Del [] method를 사용하는 것이다. 두 방법의 차이점은, 1. Pop..