일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SQL
- Tkinter
- google apps script
- Kotlin
- PostgreSQL
- PySpark
- django
- math
- numpy
- GIT
- gas
- Excel
- 파이썬
- array
- Github
- list
- PANDAS
- Python
- matplotlib
- Apache
- dataframe
- Java
- Redshift
- Google Excel
- c#
- string
- Mac
- Google Spreadsheet
- hive
- Today
- Total
목록csv (3)
달나라 노트
아래와 같은 DataFrame이 있다고 생각해봅시다. import pandas as pd from io import StringIO dict_test = { 'id': [1, 2, 3, 4, 5], 'name': ['banana', 'apple', 'melon', 'peach', 'grape'], 'price': [3500, 16000, 15000, 25000, 5800] } df_test = pd.DataFrame(dict_test) print(df_test) -- Result id name price 0 1 banana 3500 1 2 apple 16000 2 3 melon 15000 3 4 peach 25000 4 5 grape 5800 만약 위 DataFrame을 comma(,)로 나눠진 csv ..
requests library와 API를 이용하다보면 csv format의 데이터를 얻어올 때가 있습니다. 그 결과값은 API를 어떻게 만드냐에 따라 달라질 수 있지만 주로 보이는 형태는 아래와 같습니다. import requests api_endpoint = 'https://test_api/get_data' response = requests.get(api_endpoint) print(response.status_code) print(response.content) print(type(response.content)) -- Result 200 b'modelno,name,price,weight\r\nAGH1341,Laptop,1300000,1200\r\nSOE1029,Desktop,1800000,3500..
Project, Workbook, View 객체를 얻어와서 attribute를 조회할 때 일반적인 방법으로는 조회가 되지 않는 attribute가 있습니다. 아래 코드를 보시죠. import tableauserverclient as TSC id = 'user_1' pw = 'pw_1' url_tableau = 'https://tableau-server.test.com' server = TSC.Server(url_tableau) tableau_auth = TSC.TableauAuth(id, pw) server.auth.sign_in(tableau_auth) req_option = TSC.RequestOptions() req_option.filter.add(TSC.Filter(TSC.RequestOption..