일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- hive
- django
- Python
- PostgreSQL
- Apache
- numpy
- c#
- Excel
- Kotlin
- list
- math
- google apps script
- PySpark
- SQL
- matplotlib
- PANDAS
- array
- Google Spreadsheet
- 파이썬
- Java
- GIT
- dataframe
- Mac
- string
- Redshift
- Tkinter
- gas
- Github
- Google Excel
- Today
- Total
목록SUM (2)
달나라 노트
Array에 적용할 수 있는 함수 중 Max, Min, Sum이 있습니다. 바로 예시를 봅시다. using System; using System.Linq; class MyProgram { static void Main() { int[] test_arr = { 1, 2, 3, 4, 5 }; Console.WriteLine(test_arr.Max()); Console.WriteLine(test_arr.Min()); Console.WriteLine(test_arr.Sum()); Console.WriteLine(test_arr.Average()); } } -- Result 5 1 15 3 Max는 Array에서 최대값을 return합니다. Min는 Array에서 최소값을 return합니다. Sum은 Array에..
Pandas에서 사용할 수 있는 window function 기능을 알아봅시다. import pandas as pd dict_test = { 'col1': [1, 1, 2, 2, 3, 3, 3, 4], 'col2': [1000, 1100, 2100, 2050, 3000, 3100, 3200, 4200], 'col3': ['a', 'b', 'a', 'c', 'a', 'a', 'd', 'e'] } df_test = pd.DataFrame(dict_test) # print(df_test) # print(type(df_test)) - Output col1 col2 col3 0 1 1000 a 1 1 1100 b 2 2 2100 a 3 2 2050 c 4 3 3000 a 5 3 3100 a 6 3 3200 d 7..