Skip to content

Commit b823d6d

Browse files
GMinoruyGui-FernandesBR
authored andcommitted
ENH: adds example on how to use the export_results function
1 parent 63d97a5 commit b823d6d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

docs/notebooks/monte_carlo_analysis/monte_carlo_class_usage.ipynb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,25 @@
800800
")"
801801
]
802802
},
803+
{
804+
"cell_type": "markdown",
805+
"metadata": {},
806+
"source": [
807+
"We can also export our Monte Carlo results into .csv and .json files using the method `MonteCarlo.export_results()`.\n",
808+
"\n",
809+
"Choose a name for the output file and select a format to output."
810+
]
811+
},
812+
{
813+
"cell_type": "code",
814+
"execution_count": 41,
815+
"metadata": {},
816+
"outputs": [],
817+
"source": [
818+
"test_dispersion.export_results(\"monte_carlo_analysis_outputs/monte_carlo_csv_output_example\", \"csv\")\n",
819+
"test_dispersion.export_results(\"monte_carlo_analysis_outputs/monte_carlo_json_output_example\", \"json\")"
820+
]
821+
},
803822
{
804823
"attachments": {},
805824
"cell_type": "markdown",

0 commit comments

Comments
 (0)