numpy (2) 썸네일형 리스트형 [정렬] 릿코드 Easy 977 'Squares of a Sorted Array' (Python) https://leetcode.com/problems/squares-of-a-sorted-array/ Squares of a Sorted Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 리스트의 각 값에 연산을 해야 하므로 벡터연산이 가능한 numpy를 import 함 import numpy as np class Solution: def sortedSquares(self, nums: List[int]) -> List[int]: answer = np... [머신러닝4] 실전연습/KNN 알고리즘으로 z-score 구하기 In [1]: from IPython.core.display import display, HTML display(HTML("")) In [126]: import pandas as pd from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split import numpy as np In [127]: df = pd.read_csv("./wine.csv") In [128]: df Out[128]: fixed acidity volatile acidity citric acid residual sugar chlorides free sulfur dioxide total sulfur dioxide.. 이전 1 다음