일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- LSTM
- Python
- GT-S80
- 알고리즘
- Splunk
- mariadb
- ipad
- Numpy
- DFS
- synology
- GitHub
- 삼성소프트웨어멤버십
- dataframe
- SPL
- javascript
- CNN
- pycharm
- mean
- E-P1
- keras
- install
- RNN
- pip
- Button
- pandas
- SciPy
- Series
- Lotto
- imread
- index
- Today
- Total
목록잠토네 잠수함 (493)
잠토의 잠망경
오류 상황 단일 값에 대하여 DataFrame을 만드는 경우 def sample01(): ''' 모든 값이 scaler인 경우 오류 :return: ''' import pandas as pd from pandas import DataFrame datas:DataFrame = pd.DataFrame({'col1':2, 'col2':1}) # ValueError: If using all scalar values, you must pass an index print(datas) solution 1 index를 지정한다. github def sample02(): ''' 모든 값이 scaler인 경우 :return: ''' import pandas as pd from pandas import DataFrame d..
내가 찾는 가방 1. 선글라스 2. 물병 공간 있는가 3. 카메라를 넣을 수 있는가 4. 캐리어처럼 열리는가 선글라스 물병 카메라 캐리어 크기 디자인 Taskin one △ ○ ○ ○ 가변(20~40L) Good Blackember Forge Backpack ○ ※ 참고 영상 1. Taskin one 2. Taskin one 1. Black Ember Forge Backpack 2. Forge Backpack 3. Forge Backpack ※ 참고
1. pymysql install pymysql 2. 첫번째 행 갖고 오기 github data = cursor.fetchone() def sample01(ip:str, port:int, user:str, passwd:str, db:str, query:str)->tuple: """mariadb 첫번째 행 갖고 오기 Args: ip: ip port: port user: id passwd: password db: 기본 db Returns: 없음 """ import pymysql db = pymysql.connect(host = ip, port = port, user = user, passwd = passwd, db = db, charset='utf8', autocommit=True) cursor = db.c..
query의 order by와 유사하지만 주의할 사항이 있다. 제한이 있어서 10,000까지만 정렬되며 이상 넘어가면 data가 사라진다. 모든 것들에 대한 정렬을 원하면 아래를 참고하자. | Sort xxx `comments("일반적이지만 10000개가 넘어가면 사라짐")` | Sort - xxx `comments("일반적이지만 10000개가 넘어가면 사라짐")` | Sort 0 xxx `comments("무제한 정렬")` https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort sort - Splunk Documentation Download topic as PDF sort Description The sort command s..
1. 새로운 값들을 추가하고 일부를 변경 | makeresults | eval col1="a", col2="10,11,22" | append [| makeresults | eval col1="b", col2="1"] | appendpipe [| makeresults | stats first(col1) as col1, first(col2) as col2 | eval col1="test"] | table col1, col2 2. 다음과 같다.
SPL 안에서 직접 Query를 날릴 수 있어서 편하다. 1. 기본 형태 | dbxquery connection="192.168.0.42" query="SELECT * FROM mellowlee.splunk_test_db" 2. 직접 날려본 결과 DashBoard에서 해보기 1. 입력 추가를 하고 연필을 선택한다. 2. 아래와 같이 token을 입력한다. 3. 실제 이용할 SPL을 수정한다. 아래와 같이 | dbxquery connection="192.168.0.42" query="SELECT * FROM mellowlee.splunk_test_db where 1=1 and C_NAME='$MY_C_NAME$'" 4. 입력을 하면 잘 조회한다.
형태 URL#L숫자 sample https://github.com/yiwonjae/Project_Python_Finance/blob/master/PythonApplication1/PythonApplication1.py#L15 ※ 참고 https://stackoverflow.com/questions/23821235/how-to-link-to-specific-line-number-on-github
관련 github https://github.com/yiwonjae/Project_Stock_Markets_Python/blob/master/Sample01/20200415_01.py 방법 1 def Make_Date_01(): #https://www.programiz.com/python-programming/datetime/strftime from datetime import datetime, timedelta # 현재 시간 얻어오기 now = datetime.now() # 현재 시간을 얻어 온다. before = now - timedelta(days=10) # 현재 시간 기준 10일 전 시간을 얻는다. print(before) print(now) strBefore:str = before.strftim..