Skip to content

完成作業繳交 -張詩彤 -AIPE03#22

Open
oscar189150-crypto wants to merge 1 commit into
Zenobia0000:mainfrom
oscar189150-crypto:main
Open

完成作業繳交 -張詩彤 -AIPE03#22
oscar189150-crypto wants to merge 1 commit into
Zenobia0000:mainfrom
oscar189150-crypto:main

Conversation

@oscar189150-crypto

Copy link
Copy Markdown

完成作業繳交 -張詩彤 -AIPE03

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown

📊 作業批改結果

總分:350 / 600(58%)— 等級 F


💡 完整解答請到你自己 fork 的 repo → Actions 頁籤查看。

M1 NumPy(100/100 — 100%)

題目 分數 狀態
test_green_mean 10/10
test_green_double 10/10
test_green_filter 10/10
test_yellow_expensive_count 15/15
test_yellow_top3_stock_indices 15/15
test_yellow_restock_cost 15/15
test_red_double11_prices 20/20
test_red_no_forloop 5/5

M2 Pandas 清理(90/100 — 90%)

題目 分數 狀態
test_green_read_csv 0/10
test_green_shape 10/10
test_green_dtypes 10/10
test_yellow_clean_columns 15/15
test_yellow_clean_amount 15/15
test_yellow_drop_duplicates 15/15
test_red_clean_orders_returns_df 4/4
test_red_clean_orders_columns 4/4
test_red_clean_orders_amount_is_numeric 4/4
test_red_clean_orders_date_is_datetime 5/5
test_red_clean_orders_no_nulls 4/4
test_red_clean_orders_no_duplicates 4/4
❌ 錯誤提示(點擊展開)

test_green_read_csv

tests/test_m2.py:17: in test_green_read_csv
    result = green_read_csv()
             ^^^^^^^^^^^^^^^^
homework/m2_pandas_cleaning.py:23: in green_read_csv
    df = pd.read_csv("../datasets/ecommerce/orders_raw.csv")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/...

M3 Pandas 進階(90/100 — 90%)

題目 分數 狀態
test_green_load_and_merge 0/10
test_green_row_count 10/10
test_green_column_list 10/10
test_yellow_top_category 15/15
test_yellow_gold_vip_stats 15/15
test_yellow_region_avg_amount 15/15
test_red_rfm_top5_shape 9/9
test_red_rfm_top5_columns 8/8
test_red_rfm_top5_sorted_by_m 8/8
❌ 錯誤提示(點擊展開)

test_green_load_and_merge

tests/test_m3.py:21: in test_green_load_and_merge
    result = green_load_and_merge()
             ^^^^^^^^^^^^^^^^^^^^^^
homework/m3_pandas_advanced.py:27: in green_load_and_merge
    orders = pd.read_csv('../datasets/ecommerce/orders_clean.csv')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

M4 時間序列(30/100 — 30%)

題目 分數 狀態
test_green_avg_by_month 0/10
test_green_top3_dates 0/10
test_green_date_range 0/10
test_yellow_monthly_revenue 0/15
test_yellow_rolling_avg 15/15
test_yellow_category_median 15/15
test_red_monthly_report_columns 0/9
test_red_monthly_report_values 0/8
test_red_monthly_report_growth 0/8
❌ 錯誤提示(點擊展開)

test_green_avg_by_month

tests/test_m4.py:17: in test_green_avg_by_month
    result = green_avg_by_month()
             ^^^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:30: in green_avg_by_month
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../datasets/ecommerce/...

test_green_top3_dates

tests/test_m4.py:29: in test_green_top3_dates
    result = green_top3_dates()
             ^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:43: in green_top3_dates
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../datasets/ecommerce/orders_e...

test_green_date_range

tests/test_m4.py:36: in test_green_date_range
    result = green_date_range()
             ^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:55: in green_date_range
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../datasets/ecommerce/orders_e...

test_yellow_monthly_revenue

tests/test_m4.py:45: in test_yellow_monthly_revenue
    result = yellow_monthly_revenue()
             ^^^^^^^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:73: in yellow_monthly_revenue
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../dat...

test_red_monthly_report_columns

tests/test_m4.py:78: in test_red_monthly_report_columns
    result = red_monthly_report()
             ^^^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:121: in red_monthly_report
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../datasets/e...

test_red_monthly_report_values

tests/test_m4.py:88: in test_red_monthly_report_values
    result = red_monthly_report()
             ^^^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:121: in red_monthly_report
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../datasets/ec...

test_red_monthly_report_growth

tests/test_m4.py:95: in test_red_monthly_report_growth
    result = red_monthly_report()
             ^^^^^^^^^^^^^^^^^^^^
homework/m4_timeseries.py:121: in red_monthly_report
    df = _load_data()
         ^^^^^^^^^^^^
homework/m4_timeseries.py:14: in _load_data
    df = pd.read_csv("../datasets/ec...

M5 視覺化(10/100 — 10%)

題目 分數 狀態
test_green_bar_category 0/10
test_green_hist_amount 0/10
test_green_set_labels 10/10
test_yellow_line_region_trend 0/15
test_yellow_box_vip 0/15
test_yellow_scatter_price_amount 0/15
test_red_category_dashboard_is_figure 0/13
test_red_category_dashboard_has_4_subplots 0/12
❌ 錯誤提示(點擊展開)

test_green_bar_category

tests/test_m5.py:22: in test_green_bar_category
    result = green_bar_category()
             ^^^^^^^^^^^^^^^^^^^^
homework/m5_visualization.py:32: in green_bar_category
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.py:17: in _load_data
    return pd.read_csv("../datasets/ec...

test_green_hist_amount

tests/test_m5.py:29: in test_green_hist_amount
    result = green_hist_amount()
             ^^^^^^^^^^^^^^^^^^^
homework/m5_visualization.py:47: in green_hist_amount
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.py:17: in _load_data
    return pd.read_csv("../datasets/ecomme...

test_yellow_line_region_trend

tests/test_m5.py:45: in test_yellow_line_region_trend
    result = yellow_line_region_trend()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
homework/m5_visualization.py:88: in yellow_line_region_trend
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.py:17: in _load_data
    return pd....

test_yellow_box_vip

tests/test_m5.py:53: in test_yellow_box_vip
    result = yellow_box_vip()
             ^^^^^^^^^^^^^^^^
homework/m5_visualization.py:107: in yellow_box_vip
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.py:17: in _load_data
    return pd.read_csv("../datasets/ecommerce/orders_...

test_yellow_scatter_price_amount

tests/test_m5.py:58: in test_yellow_scatter_price_amount
    result = yellow_scatter_price_amount()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homework/m5_visualization.py:122: in yellow_scatter_price_amount
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.py:17: in _load_data
 ...

test_red_category_dashboard_is_figure

tests/test_m5.py:65: in test_red_category_dashboard_is_figure
    result = red_category_dashboard("Electronics")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homework/m5_visualization.py:146: in red_category_dashboard
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.py:17:...

test_red_category_dashboard_has_4_subplots

tests/test_m5.py:70: in test_red_category_dashboard_has_4_subplots
    result = red_category_dashboard("Electronics")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homework/m5_visualization.py:146: in red_category_dashboard
    df = _load_data()
         ^^^^^^^^^^^^
homework/m5_visualization.p...

M6 Plotly Capstone(30/100 — 30%)

題目 分數 狀態
test_green_plotly_bar 0/10
test_green_plotly_line 0/10
test_green_plotly_pie 0/10
test_yellow_clean_and_merge 0/15
test_yellow_kpi_summary 15/15
test_yellow_plotly_scatter 15/15
test_red_dashboard_is_figure 0/13
test_red_dashboard_has_traces 0/12
❌ 錯誤提示(點擊展開)

test_green_plotly_bar

tests/test_m6.py:21: in test_green_plotly_bar
    result = green_plotly_bar()
             ^^^^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:29: in green_plotly_bar
    df = pd.read_csv("../datasets/ecommerce/orders_enriched.csv")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/op...

test_green_plotly_line

tests/test_m6.py:26: in test_green_plotly_line
    result = green_plotly_line()
             ^^^^^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:50: in green_plotly_line
    df = pd.read_csv("../datasets/ecommerce/orders_enriched.csv")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

test_green_plotly_pie

tests/test_m6.py:31: in test_green_plotly_pie
    result = green_plotly_pie()
             ^^^^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:71: in green_plotly_pie
    df = pd.read_csv("../datasets/ecommerce/orders_enriched.csv")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/op...

test_yellow_clean_and_merge

tests/test_m6.py:38: in test_yellow_clean_and_merge
    result = yellow_clean_and_merge(
homework/m6_plotly_capstone.py:96: in yellow_clean_and_merge
    orders = orders.dropna(subset=['order_id', 'customer_id'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Pyt...

test_red_dashboard_is_figure

tests/test_m6.py:68: in test_red_dashboard_is_figure
    result = red_dashboard()
             ^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:185: in red_dashboard
    orders = pd.read_csv("../datasets/ecommerce/orders_raw.csv").drop_duplicates()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

test_red_dashboard_has_traces

tests/test_m6.py:72: in test_red_dashboard_has_traces
    result = red_dashboard()
             ^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:185: in red_dashboard
    orders = pd.read_csv("../datasets/ecommerce/orders_raw.csv").drop_duplicates()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant