일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Redshift
- django
- SQL
- hive
- Excel
- list
- PySpark
- Mac
- numpy
- Github
- gas
- Google Excel
- Google Spreadsheet
- Java
- dataframe
- google apps script
- GIT
- math
- Apache
- PostgreSQL
- matplotlib
- c#
- string
- array
- Tkinter
- PANDAS
- Kotlin
- 파이썬
- Python
- Today
- Total
목록clear (2)
달나라 노트
셀에 적힌 값을 삭제하는 코드를 작성해보겠습니다. 현재 시트 정보입니다. function myFunction() { var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet1')); spreadsheet.getRange('B3').activate(); spreadsheet.getActiveRange().clear(); } - var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); 현재 spreadsheet 정보를 얻어옵니다. - spreadsheet.setActiveSheet(spreadsheet.getSh..
Python list의 요소를 삭제할 수 있는 기능을 제공하는 method는 크게 4가지가 있습니다. 각 method의 특징은 다음과 같습니다. Method Description clear() list속 모든 요소를 삭제하여 비어있는 list로 변환시킴 (원본 list에서 삭제됨) remove(value) list속에서 value와 동일한 값을 삭제 (원본 list에서 삭제됨) pop(index) list속에서 명시된 index의 요소를 삭제 (원본 list에서 삭제됨) del list[index] list속에서 명시된 index의 요소를 삭제 (원본 list에서 삭제됨) 예시를 보면서 한번 알아봅시다. list_test = [5, 3, 1, 4, 2, 'a', 'bc', 'def'] list_test...