25년 5월 시점에서 하다보니깐, requests 강의를 들을때 클래스 파싱 하는 과정이 작동이 안되서 확인해보니, requests는 javascript 로 만들어진 동적 내용을 긁을 수 없다고 하더라구요. 그래서 selenium의 webdriver를 사용했는데, 작동은 되는데 불편한 점이 각 실행시마다 크롬 창이 떠요. 혹시 javascript도 requests로 파싱할 수 있는 방법 이 있을까요?
안녕하세요 강의 잘 듣고 있습니다 ! 영상에서 예를 들어 선생님께서는 이렇게 cols만 붙이시거나 train.head()이렇게만 하시는데 실제 시험에서는 모든 식 앞에 print()를 붙여야 하나요? 또, print를 붙여야 되는 식은 어떻게 구분하는지 질문드립니다 ! cols = train.select_dtypes(include="object").columns cols cols = train.select_dtypes(include="object").columns print(cols)
안녕하세요, 강의 中 내장 함수 관련한 내용을 보고서 아래와 같이 실습해보니 listbox = [2,4,6,8,10]을 기준으로 sum을 하면 정상적으로 30이 실행되지만, 물리적으로 모든 원소를 더해준 값을 프린트 한 값과의 비교는 다르다 뜹니다. 파이썬 비교 연산자(혹은 모든 연산자)들은 자료형을 기준으로 출력이 되나요? [실습]
학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! 질문과 관련된 영상 위치를 알려주면 더 빠르게 답변할 수 있어요 먼저 유사한 질문이 있었는지 검색해보세요 24: 40쯤 영상입니다 제가 넣은 코딩은 이거이고 그 전까지는 결과값이 쌤이랑 동일 했습니다. from xgboost import XGBClassifier xgb = XGBClassifier() xgb.fit(X_tr[cols], y_tr) pred = xgb.predict_proba(X_val[cols]) pred[:10] array([[9.6185881e-01, 3.8141213e-02], [9.9447620e-01, 5.5237846e-03], [5.2776355e-01, 4.7223645e-01], [9.1258293e-01, 8.7417044e-02], [7.4549425e-01, 2.5450572e-01], [9.8757923e-01, 1.2420748e-02], [9.9907589e-01, 9.2413591e-04], [8.6976409e-01, 1.3023594e-01], [1.8734336e-03, 9.9812657e-01], [9.2717761e-01, 7.2822370e-02]], dtype=float32) 이거로 쌤이랑 다르게 나오는데 이유를 모르겠슴니다 ㅠ
안녕하세요! 정렬 -2 (3-3)과 관련해서 아래처럼 sort를 이용하면 안되는건가요? for문 두번을 이용해서 설명해주신 방법대로 해야하는 것이 맞는지 궁금하고, 아래 방법대로 하면 O(N) 연산량이 되는 것인지도 궁금합니다! 감사합니다. input = [4,6,2,9,1] ###내가 한것### def insertion_sort(array): n = len(array) for i in range(1,n): if array[i]<array[i-1]: a = array[:i+1] a.sort() array[:i+1]=a return array insertion_sort(input)
PS C:\Users\SSAFY\Inflearn\docker-mysql> docker run -e MYSQL_ROOT_PASSWORD=$(비밀번호) -d -p 3306:3306 -v C:\Users\SSAFY\Inflearn\docker-mysql\mysql_data:\var\lib\mysql mysql 0b272839d37a21ba514052f486d744988addbbfd898f88e4bbb77383c1a35d6c PS C:\Users\SSAFY\Inflearn\docker-mysql> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0b272839d37a mysql "docker-entrypoint.s…" 14 seconds ago Up 13 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp unruffled_diffie PS C:\Users\SSAFY\Inflearn\docker-mysql> docker exec -it 0b2 bash bash-5.1# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 9.3.0 MySQL Community Server - GPL Copyright (c) 2000, 2025, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.014 sec) mysql> create database mydb; Query OK, 1 row affected (0.024 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mydb | | mysql | | performance_schema | | sys | +--------------------+ 5 rows in set (0.001 sec) mysql> exit Bye bash-5.1# exit exit PS C:\Users\SSAFY\Inflearn\docker-mysql> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0b272839d37a mysql "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:3306->3306/tcp, 33060/tcp unruffled_diffie PS C:\Users\SSAFY\Inflearn\docker-mysql> docker rm -f 0b2 0b2 PS C:\Users\SSAFY\Inflearn\docker-mysql> docker run -e MYSQL_ROOT_PASSWORD=$(비밀번호) -d -p 3306:3306 -v C:\Users\SSAFY\Inflearn\docker-mysql\mysql_data:\var\lib\mysql mysql e0dbe2fa08d4ba1dec0442afacf5290a4c6ecef265be723e489b5d08f1ec237f PS C:\Users\SSAFY\Inflearn\docker-mysql> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e0dbe2fa08d4 mysql "docker-entrypoint.s…" 9 seconds ago Up 8 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp romantic_booth PS C:\Users\SSAFY\Inflearn\docker-mysql> docker exec -it e0d docker: 'docker exec' requires at least 2 arguments Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] See 'docker exec --help' for more information PS C:\Users\SSAFY\Inflearn\docker-mysql> docker exec -it e0d bash bash-5.1# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 9.3.0 MySQL Community Server - GPL Copyright (c) 2000, 2025, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.014 sec) 강사님과 동일하게 volume 생성 후 다른 컨테이너로 접속 시 mydb가 조회되지 않습니다... 원인이 무엇인지 궁금합니다. 비밀번호는 암호화했습니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 iframe 전환을 해야되는데 강사님 강의에는 iframe 태그가 있는데 제 화면에는 iframe 안보이는데 이건 어떻게 된건가요 ~
학습 관련 질문을ㅇ 남겨주세요. 상세히 작성하면 더 좋아요! 질문과 관련된 영상 위치를 알려주면 더 빠르게 답변할 수 있어요 먼저 유사한 질문이 있었는지 검색해보세요 안녕하세요 퇴근후딴짓님. 마지막 답이 이런식으로 나오는 그대로 제출해도 되나요?? 퇴근후 딴짓님 코드 그대로 입력햇는데 아래 처럼 나오는데요. 앞에 int()로 묶어도 점수에 영향이 없나요?? 아니면 아래 그래도 제출해도 되나요?? np.int64(313)