|
399 | 399 | "metadata": {}, |
400 | 400 | "outputs": [], |
401 | 401 | "source": [ |
402 | | - "scenario_df.to_csv(\"/Users/m_754337/workspace/covid-xprize-robotasks/ips/prescriptions/uk_future_test_ips.csv\", index=False)" |
| 402 | + "scenario_df.to_csv(\"~/workspace/covid-xprize-robotasks/ips/prescriptions/uk_future_test_ips.csv\", index=False)" |
403 | 403 | ] |
404 | 404 | }, |
405 | 405 | { |
|
455 | 455 | "metadata": {}, |
456 | 456 | "outputs": [], |
457 | 457 | "source": [ |
458 | | - "scenario_df.to_csv(\"/Users/m_754337/workspace/covid-xprize-robotasks/ips/prescriptions/all_2020_ips.csv\", index=False)" |
| 458 | + "scenario_df.to_csv(\"~/workspace/covid-xprize-robotasks/ips/prescriptions/all_2020_ips.csv\", index=False)" |
| 459 | + ] |
| 460 | + }, |
| 461 | + { |
| 462 | + "cell_type": "markdown", |
| 463 | + "metadata": {}, |
| 464 | + "source": [ |
| 465 | + "## China early 2020 test" |
| 466 | + ] |
| 467 | + }, |
| 468 | + { |
| 469 | + "cell_type": "code", |
| 470 | + "execution_count": null, |
| 471 | + "metadata": {}, |
| 472 | + "outputs": [], |
| 473 | + "source": [ |
| 474 | + "start_date_str = None\n", |
| 475 | + "end_date_str = \"2020-02-14\"\n", |
| 476 | + "latest_df = load_dataset(LATEST_DATA_URL, GEO_FILE)\n", |
| 477 | + "countries = [\"China\"]\n", |
| 478 | + "scenario_df = generate_scenario(start_date_str, end_date_str, latest_df, countries, scenario=\"Historical\")" |
| 479 | + ] |
| 480 | + }, |
| 481 | + { |
| 482 | + "cell_type": "code", |
| 483 | + "execution_count": null, |
| 484 | + "metadata": {}, |
| 485 | + "outputs": [], |
| 486 | + "source": [ |
| 487 | + "end_date = pd.to_datetime(end_date_str, format='%Y-%m-%d')\n", |
| 488 | + "scenario_df = scenario_df[scenario_df.Date <= end_date]" |
| 489 | + ] |
| 490 | + }, |
| 491 | + { |
| 492 | + "cell_type": "code", |
| 493 | + "execution_count": null, |
| 494 | + "metadata": {}, |
| 495 | + "outputs": [], |
| 496 | + "source": [ |
| 497 | + "scenario_df.tail()" |
| 498 | + ] |
| 499 | + }, |
| 500 | + { |
| 501 | + "cell_type": "code", |
| 502 | + "execution_count": null, |
| 503 | + "metadata": {}, |
| 504 | + "outputs": [], |
| 505 | + "source": [ |
| 506 | + "len(scenario_df)" |
| 507 | + ] |
| 508 | + }, |
| 509 | + { |
| 510 | + "cell_type": "code", |
| 511 | + "execution_count": null, |
| 512 | + "metadata": {}, |
| 513 | + "outputs": [], |
| 514 | + "source": [ |
| 515 | + "scenario_df.to_csv(\"~/workspace/covid-xprize-robotasks/ips/prescriptions/china_early_2020_ips.csv\", index=False)" |
459 | 516 | ] |
460 | 517 | }, |
461 | 518 | { |
|
0 commit comments