본문 바로가기

전체 글180

Data Handling | pandas dataframe # 인덱스가 이미 있는 csv 파일인 경우 - if the first column in the CSV file has index values df2 = pd.read_csv('train.csv', index_col=0) 2021. 1. 5.
python mongodb | dnspython pymongo - mongodb+srv “dnspython must be installed” error pymongo - mongodb+srv "dnspython must be installed" error I am trying to connect MongoDB from Atlas, but I encounter the following error: dnspython must be installed error My mongo uri is: mongodb+srv://abc:123@something.something.com/admin?retryWrites=... stackoverflow.com pip install dnspython==2.0.0 2021. 1. 5.
Pig Latin | match(), regexp, replace(), concat() Problem> Pig Latin is a way of altering English Words. The rules are as follows: - If a word begins with a consonant, take the first consonant or consonant cluster, move it to the end of the word, and add "ay" to it. - If a word begins with a vowel, just add "way" at the end. Solution> function pigIt(str) { let regex = /^[^aeiou]+/; let consonant = str.match(regex); return consonant !== null ? s.. 2020. 12. 30.
우리가 빛의 속도로 갈 수 없다면_김초엽 책 속의 문장들> - 만약 바다에서 인간이 자유를 느낄 수 있다면, 그 자체가 목적이 되지 않을 이유가 있을까. - 나는 나의 독특한 얼룩이 자랑스럽기까지 했다. 마을에서 사람들은 서로의 결점들을 신경 쓰지 않았다. 그래서 때로 어떤 결점들은 결점으로도 느껴지지 않았다. 마을에서 우리는 서로의 존재를 결코 배제하지 않았다. - 진실은 주어지는 것이 아니라 찾아가는 과정이다. - 우울이라는 감정을 손으로 쓰다듬고 만지는 방식으로 감각하고 싶다. 감정의 물성> 감정 자체를 조형화한 제품 대체 왜 어떤 사람들은 우울, 분노, 공포를 살까? 실재하는 물건. 물성을 감각할 수 있다는 것. 소비가 항상 기쁨에 대한 가치지불일까? 감정을 향유하는 가치를 지불하기도 한다. 한 편의 영화를 볼 때 공포, 고독, 괴로움... 2020. 12. 18.
Circular Navbar UI 네이버 그린닷 핀터레스트 핀버튼 삼성 등등에서 쓰이는 circular navbar ui를 만들어봤다. 2020. 12. 18.
[Codewars] arrDiff - 두 개의 배열에서 중복 제거하기 function arrayDiff(a, b) { return a.filter(v => !b.includes(v)); } arr.filter(callback(element [ , index [ , array]]) [ , thisArg]) 배열 내 각 요소에 대해 callback함수상 true인 값으로 새로운 배열을 생성한다. (기존배열 변경안함) element: 요소값 index: 처리할 현재 요소 인덱스 array: filter를 호출한 배열 thisArg: 콜백의 this값으로 쓰임 arr.includes(valueToFind [ , fromIndex] ) 배열이 특정 요소를 포함하고 있는지 판별한다. 참고: 문자나 문자열을 비교할 때, includes()는 대소문자를 구분함. # reference d.. 2020. 12. 18.