일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- Tkinter
- Kotlin
- string
- PostgreSQL
- Java
- Excel
- gas
- Mac
- Python
- google apps script
- Github
- Apache
- dataframe
- hive
- list
- c#
- 파이썬
- django
- PySpark
- PANDAS
- matplotlib
- Google Excel
- Google Spreadsheet
- math
- Redshift
- array
- GIT
- numpy
- SQL
- Today
- Total
목록max (8)
달나라 노트
numpy의 min, max method는 각각 주어진 값들 중 최소값, 최대값을 return합니다. import numpy as np arr_test = np.array([1, 2, 3, 4, 5]) print(arr_test) print(np.min(arr_test)) print(np.max(arr_test)) -- Result [1 2 3 4 5] 1 5 arr_test에서 각각 최소값, 최대값이 return됩니다. import numpy as np arr_test = np.array( [ # 1차 array [1, 2, 3, 4, 5], [6, 7, 8, 9, 10], [11, 12, 13, 14, 15] # 2차 array ] ) print(arr_test) print(np.min(arr_tes..
min, max method를 이용하면 컬럼간의 값 비교가 가능해집니다. import pandas as pd import numpy as np dict_test = { 'col1': [1, 2, np.nan, 4, 5], 'col2': [6, 2, 7, 3, 9], 'col3': [10, 6, 22, np.nan, 21] } df_test = pd.DataFrame(dict_test) print(df_test) -- Result col1 col2 col3 0 1.0 6 10.0 1 2.0 2 6.0 2 NaN 7 22.0 3 4.0 3 NaN 4 5.0 9 21.0 먼저 test용 DataFrame을 위처럼 생성합시다. import pandas as pd import numpy as np dict_tes..
Original source = play.kotlinlang.org/byExample/01_introduction/01_Hello%20world fun main() { var list_numbers = listOf(1, 2, -10, 5, 12) // 1 var var_max = list_numbers.maxOrNull() // 2 println(var_max) var var_min = list_numbers.minOrNull() // 3 println(var_min) var list_empty = emptyList() // 4 var var_max_empty = list_empty.maxOrNull() // 4 println(var_max_empty) var var_min_empty = list_emp..
Original source = www.w3schools.com 이번에는 여러 숫자 관련 기능들을 알아봅시다. max method는 적힌 2개의 arguments 중 더 큰 값을 반환합니다. public class JavaMath { public static void main(String args[]) { System.out.println(Math.max(1, 2)); } } -- Result 2 min method는 적힌 2개의 arguments 중 더 작은 값을 반환합니다. public class JavaMath { public static void main(String args[]) { System.out.println(Math.min(1, 2)); } } -- Result 1 sqrt는 주어진 a..