You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/create-notebook-visualize-data.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ In this section, you will create the Azure Cosmos database, container, and impor
29
29
30
30
1. After a new notebook is created, you can rename it to something like **VisualizeRetailData.ipynb.**
31
31
32
-
1. Next you will create a database named “RetailDemo” and a container named “WebsiteData” to store the retail data. You can use /CardID as the partition key. Copy and paste the following code to a new cell in your notebook and run it:
32
+
1. Next you will create a database named "RetailDemo" and a container named "WebsiteData" to store the retail data. You can use /CartID as the partition key. Copy and paste the following code to a new cell in your notebook and run it:
33
33
34
34
```python
35
35
import azure.cosmos
@@ -49,8 +49,8 @@ In this section, you will create the Azure Cosmos database, container, and impor
49
49
The database and container are created in your current Azure Cosmos account. The container is provisioned with 400 RU/s. You will see the following output after the database and container is created.
50
50
51
51
```console
52
-
Database RetailDemo created
53
-
Container WebsiteData created
52
+
Database RetailDemo created
53
+
Container WebsiteData created
54
54
```
55
55
56
56
You can also refresh the **Data** tab and see the newly created resources:
@@ -116,7 +116,7 @@ Before running queries to analyze the data, you can read the data from container
116
116
{Query text}
117
117
```
118
118
119
-
To learn more, see the [built-in notebook commands and features in Azure Cosmos DB](use-notebook-features-and-commands.md) article. You will run the query- `SELECT c.Action, c.Price as ItemRevenue, c.Country, c.Item FROM c`. The results will be saved into a Pandas DataFrame named df_cosmos. Paste the following command in a new notebook cell and run it:
119
+
To learn more, see the [built-in notebook commands and features in Azure Cosmos DB](use-python-notebook-features-and-commands.md) article. You will run the query- `SELECT c.Action, c.Price as ItemRevenue, c.Country, c.Item FROM c`. The results will be saved into a Pandas DataFrame named df_cosmos. Paste the following command in a new notebook cell and run it:
1. Let’s see another case of data visualization. The WebsiteData container has record of users who viewed an item, added to their cart, and purchased the item. Let’s plot the conversion rate of items purchased. Run the following code in a new cell to visualize the conversion rate for each item:
235
+
1. Let's see another case of data visualization. The WebsiteData container has record of users who viewed an item, added to their cart, and purchased the item. Let's plot the conversion rate of items purchased. Run the following code in a new cell to visualize the conversion rate for each item:
236
236
237
237
```python
238
238
from bokeh.io import show, output_notebook
@@ -285,4 +285,4 @@ In this section, you will run some queries on the data retrieved.
285
285
286
286
## Next steps
287
287
288
-
* To learn more about notebook commands, see [how to use built-in notebook commands and features in Azure Cosmos DB](use-notebook-features-and-commands.md) article.
288
+
* To learn more about Python notebook commands, see [how to use built-in notebook commands and features in Azure Cosmos DB](use-python-notebook-features-and-commands.md) article.
Copy file name to clipboardExpand all lines: articles/cosmos-db/use-csharp-notebook-features-and commands.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ You can install multiple NuGet packages in the same cell. Packages will be avail
25
25
26
26
Currently, the C# notebooks workspace does not support recursive resolution of NuGet packages. If a NuGet package has dependencies on other NuGet packages not currently installed, you may have to explicitly reference them along with the parent package.
27
27
28
-
> [!TIP]
28
+
> [!TIP]''
29
29
> If your notebook requires a custom package, we recommend that you add a cell to your notebook to install the package and make it the first cell. This reduces the chance of conflicts with any packages Azure Cosmos DB loads by default. It also makes it easy to re-install them if you [reset the workspace](#reset-notebooks-workspace), which removes all packages.
30
30
## Use the built-in Azure Cosmos DB .NET SDK
31
31
Version 3 of the [Azure Cosmos DB .NET SDK for SQL API](https://github.com/Azure/azure-cosmos-dotnet-v3) is installed and included in the notebook environment for the Azure Cosmos account.
@@ -124,7 +124,7 @@ You can use the ``%%upload`` magic command to upload data from a JSON file to a
- Replace ``{database_id}`` and ``{container_id}`` with the name of the database and container in your Azure Cosmos account. If the ``--database`` and ``--container`` arguments are not provided, the query will be executed on the [default database and container](#set-default-database-for-queries).
127
+
- Replace ``{database_id}`` and ``{container_id}`` with the name of the database and container in your Azure Cosmos account.
128
128
- Replace ``{url_location_of_file}`` with the location of your JSON file. The file must be an array of valid JSON objects and it should be accessible over the public Internet.
0 commit comments