diff --git a/examples/pennylane/2_Graph_optimization_with_QAOA/2_Graph_optimization_with_QAOA.ipynb b/examples/pennylane/2_Graph_optimization_with_QAOA/2_Graph_optimization_with_QAOA.ipynb index c1a6563d6..797ef4f4f 100644 --- a/examples/pennylane/2_Graph_optimization_with_QAOA/2_Graph_optimization_with_QAOA.ipynb +++ b/examples/pennylane/2_Graph_optimization_with_QAOA/2_Graph_optimization_with_QAOA.ipynb @@ -920,6 +920,8 @@ } ], "source": [ + "import pandas as pd\n", + "\n", "metrics = job.metrics()\n", "df = pd.DataFrame(metrics)\n", "df = df.groupby(\"iteration_number\").sum().reset_index()\n", @@ -961,7 +963,6 @@ ], "source": [ "# Plotting the convergence of the loss function metric\n", - "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "\n", "%matplotlib inline\n", @@ -1037,4 +1038,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +}