Skip to content

M1作業-孟祥竣#34

Open
bearjimmy wants to merge 2 commits into
Zenobia0000:mainfrom
bearjimmy:main
Open

M1作業-孟祥竣#34
bearjimmy wants to merge 2 commits into
Zenobia0000:mainfrom
bearjimmy:main

Conversation

@bearjimmy

Copy link
Copy Markdown

No description provided.

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

📊 作業批改結果

總分:435 / 600(72%)— 等級 C


💡 完整解答請到你自己 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 清理(100/100 — 100%)

題目 分數 狀態
test_green_read_csv 10/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

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

題目 分數 狀態
test_green_load_and_merge 10/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

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

題目 分數 狀態
test_green_avg_by_month 10/10
test_green_top3_dates 10/10
test_green_date_range 10/10
test_yellow_monthly_revenue 15/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_red_monthly_report_columns

/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/pandas/core/indexes/base.py:3805: in get_loc
    return self._engine.get_loc(casted_key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
index.pyx:167: in pandas._libs.index.IndexEngine.get_loc
    ???
index.pyx:196: in pandas._libs.in...

test_red_monthly_report_values

/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/pandas/core/indexes/base.py:3805: in get_loc
    return self._engine.get_loc(casted_key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
index.pyx:167: in pandas._libs.index.IndexEngine.get_loc
    ???
index.pyx:196: in pandas._libs.in...

test_red_monthly_report_growth

/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/pandas/core/indexes/base.py:3805: in get_loc
    return self._engine.get_loc(casted_key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
index.pyx:167: in pandas._libs.index.IndexEngine.get_loc
    ???
index.pyx:196: in pandas._libs.in...

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

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

test_yellow_line_region_trend

lib.pyx:2391: in pandas._libs.lib.maybe_convert_numeric
    ???
E   TypeError: Invalid object type

During handling of the above exception, another exception occurred:
tests/test_m5.py:45: in test_yellow_line_region_trend
    result = yellow_line_region_trend()
             ^^^^^^^^^^^^^^^^^^^^^^^^^...

test_red_category_dashboard_is_figure

lib.pyx:2391: in pandas._libs.lib.maybe_convert_numeric
    ???
E   TypeError: Invalid object type

During handling of the above exception, another exception occurred:
tests/test_m5.py:65: in test_red_category_dashboard_is_figure
    result = red_category_dashboard("Electronics")
             ^^^^^^...

test_red_category_dashboard_has_4_subplots

lib.pyx:2391: in pandas._libs.lib.maybe_convert_numeric
    ???
E   TypeError: Invalid object type

During handling of the above exception, another exception occurred:
tests/test_m5.py:70: in test_red_category_dashboard_has_4_subplots
    result = red_category_dashboard("Electronics")
             ^...

M6 Plotly Capstone(0/100 — 0%)

題目 分數 狀態
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 0/15
test_yellow_plotly_scatter 0/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('orders_enriched.csv')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/pyt...

test_green_plotly_line

tests/test_m6.py:26: in test_green_plotly_line
    result = green_plotly_line()
             ^^^^^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:57: in green_plotly_line
    df = pd.read_csv('orders_enriched.csv')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib...

test_green_plotly_pie

tests/test_m6.py:31: in test_green_plotly_pie
    result = green_plotly_pie()
             ^^^^^^^^^^^^^^^^^^
homework/m6_plotly_capstone.py:77: in green_plotly_pie
    df = pd.read_csv('orders_enriched.csv')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/pyt...

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:109: in yellow_clean_and_merge
    df = pd.merge(df, products, on='product_id')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3...

test_yellow_kpi_summary

tests/test_m6.py:52: in test_yellow_kpi_summary
    assert result is not None, "函式回傳了 None"
E   AssertionError: 函式回傳了 None
E   assert None is not None

test_yellow_plotly_scatter

tests/test_m6.py:63: in test_yellow_plotly_scatter
    _assert_is_plotly_figure(result, "yellow_plotly_scatter")
tests/test_m6.py:14: in _assert_is_plotly_figure
    assert result is not None, f"{name}: 函式回傳了 None"
E   AssertionError: yellow_plotly_scatter: 函式回傳了 None
E   assert None is not None

test_red_dashboard_is_figure

tests/test_m6.py:69: in test_red_dashboard_is_figure
    _assert_is_plotly_figure(result, "red_dashboard")
tests/test_m6.py:14: in _assert_is_plotly_figure
    assert result is not None, f"{name}: 函式回傳了 None"
E   AssertionError: red_dashboard: 函式回傳了 None
E   assert None is not None

test_red_dashboard_has_traces

tests/test_m6.py:73: in test_red_dashboard_has_traces
    assert result is not None
E   assert None is not None

@github-actions github-actions Bot added score:C and removed score:F labels May 5, 2026
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