Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
我是何明政,iCHEF 的共同創辦人,綽號是瑪法,有的時候別人也會稱呼我 Spencer。 iCHEF 是一間提供餐廳科技的公司,主要的產品是餐廳專用的POS系統,同時擁有現在主流的線上點餐以及餐廳營運相關的功能。 | |
目前在公司內主要的工作是負責管理策略與資料團隊。 策略團隊目前負責維護公司 company 跟 BU (business unit) 的 PDCA 循環,像是團隊中監軍的角色,目標是穩定團隊的工作節奏與紀律,能夠協助 BU 的最高管理者 BO (Business Owner) 完成管理週期的活動,包含財務報表,管理指標的資料彙整、會議週期的管理、會議紀錄以及資訊溝通,更進一步的會協助參與 BU 活動的團隊。 | |
而資料團隊的工作首要任務是協助完成 BU 所需資料集的處理工程,第一原則是維護 Single source of truth 的資料品質,提升管理活動之中能夠有可信任的資料並且加速管理效率,所以優先會透過軟體工程手段提升資料品質以及產出的自動化。 | |
由於我是這個團隊的管理者,我個姓是一個很粗魯而且很失禮,帶有酸民語氣的人,所以接下來回答都用這種口氣。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPC s c remove highlight | |
**** Files manipulations key bindings | |
Files manipulation commands (start with ~f~): | |
| Key Binding | Description | | |
|-------------+----------------------------------------------------------------| | |
| ~SPC f c~ | copy current file to a different location | | |
| ~SPC f C d~ | convert file from unix to dos encoding | | |
| ~SPC f C u~ | convert file from dos to unix encoding | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import os.path | |
import base64 | |
from aws_cdk import ( | |
core, | |
aws_ec2 as ec2, | |
aws_ecs as ecs, | |
aws_iam as iam, | |
aws_batch as batch, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from bs4 import BeautifulSoup as soup | |
from urllib.request import Request, urlopen | |
pd.set_option('display.max_colwidth', 25) | |
# Input | |
symbol = input('Enter a ticker: ') | |
print ('Getting data for ' + symbol + '...\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def price_twe(date): | |
date_str = date.strftime('%Y%m%d') | |
res = requests_get('https://www.twse.com.tw/exchangeReport/MI_INDEX?response=csv&date='+date_str+'&type=ALLBUT0999', headers=headers, ) | |
if res.text == '': | |
print('holiday') | |
return pd.DataFrame() | |
price_row = 200 | |
if date >= datetime.date(2020, 8, 10): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------------------------------------------------------------------------------- | |
# model.py | |
#---------------------------------------------------------------------------------------- | |
from django.db import models | |
from numpy.random import random_sample | |
class CustomModel(models.Model): | |
# Put your fields here | |
def get_data(self): |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
NewerOlder