[Python] XlsxWriter - Excel ๋ค๋ฃจ๊ธฐ
Pandas - Dataframe๊ณผ ํจ๊ป ์ฌ์ฉํ๊ธฐ writer = pd.ExcelWriter(out_file, engine='xlsxwriter') df.to_excel(writer, sheet_name='Sheet1', freeze_panes = (1, 0), index=False) workbook = writer.book worksheet = writer.sheets['Sheet1'] worksheet.set_zoom(80) # zoom ์ค์ # row, col, width, format worksheet.set_column(0, 0, 10, workbook.add_format({'num_format': '#,##0', 'border': 1, 'align': 'center', 'text_wrap': ..
[Python] Pandas - Dataframe ํจ์ ๋ชจ์
merge result_df = pd.merge(df1, df2, how='left', on='key') result_df = pd.merge(df1, df2, how='left', left_on='name1', right_on='name2') drop column df.drop(columns=['datetime'], inplace=True) reset index df.reset_index(inplace=True, drop=True) new col with apply df['new_col'] = df.apply(lambda x: json.loads(x['loc'])['c'][1], axis=1) sort # ์ด ์ด๋ฆ ์์ axis=1 # ๋ด๋ฆผ์ฐจ์ ascending=False df.sort_values(b..
[Vue] router multiple paths, redirect to default path
var router = new VueRouter({ //mode: 'history', routes : [ { path: '/', redirect: '/profile' }, { path: '/order', component: Order }, { path: '/profile', component: Profile, children: [ { path: '', component: ProfileTab1 }, { path: 'tab1', component: ProfileTab1 }, { path: 'tab2', component: ProfileTab2 }, ] }, { path: '*', component: NotFoundComponent } ] }); alias ์ฌ์ฉ routes: [ { path: '/foo', ..