git config
# config options
--system
--global
--local
# config
user.name myName
user.email myEmail@email.com
core.autocrlf input (or true or false) ## input: commit 할때만 LF로 변경
core.editor code
init.defaultBranch main
# config 확인
git config --l (or --list)
git config --list --show-origin
git config <key>
ex) git config user.name
: 숙박 서비스를 제공하기 위한 숙소의 가격 결정 요인을 분석해보기 위해 Airbnb의 데이터를 분석한다.
| Column | Description |
|---|---|
| id | 리스트 ID |
| name | 리스트의 이름 |
| host_id | 호스트 ID |
| host_name | 호스트의 이름 |
| neighbourhood_group | 위치 |
| neighbourhood | 지역 |
| latitude | 위도 좌표 |
| longitude | 경도 좌표 |
| room_type | 리스트 공간 유형 |
| price | 가격 (달러 기준) |
| minimum_nights | 최소 숙박 수 |
| number_of_reviews | 리뷰 수 |
| last_review | 최근 리뷰 날짜 |
| reviews_per_month | 월별 리뷰 수 |
| calculated_host_listings_count | 호스트당 리스트 수 |
| availability_365 | 예약 가능한 일수(1년 기준) |
# 분석에 필요한 col 선택 및 null value 처리
df['reviews_per_month'].fillna(0, inplace=True)
#...for문 중략...#
pd.DataFrame ( {'val' : [i], 'nunique' : df[i].nunique()) )
plt.style.use (['dark_background'])
display (pd.DataFrame (df['price'].describe())
sns.distplot (df['price'])
eda_df = df.groupby ('neighbourhood_grou')['price'].agg (price_mean=('mean')).reset_index()
sns.heatmap (df_par.corr(), vmin=-1, vmax=+1, annot=True, cmap='coolwarm', mask=mask)
sns.scatterplot (data=df, x='availability_365', y='price')
이 글은 제로베이스 데이터 분석 취업 스쿨의 강의 자료 일부를 발췌하여 작성되었습니다.