Skip to content

Commit dbb22f8

Browse files
committed
minor tweaks
1 parent 733ef5b commit dbb22f8

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docs/use-cases/AI_ML/data-exploration/marimo-notebook.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Then click `Import dataset`:
5858

5959
ClickHouse will automatically create the `pp_complete` table in the `default` database and fill the table with 28.92 million rows of price point data.
6060

61-
In order to reduce the likelihood of exposing your credentials, we recommend to add your Cloud username and password as environment variables on your local machine.
61+
In order to reduce the likelihood of exposing your credentials, we recommend you add your Cloud username and password as environment variables on your local machine.
6262
From a terminal run the following command to add your username and password as environment variables:
6363

6464
### Setting up credentials {#setting-up-credentials}
@@ -125,11 +125,8 @@ You should see the result shown underneath the cell you just ran:
125125
## Exploring the data {#exploring-the-data}
126126

127127
With the UK price paid data set up and chDB up and running in a Marimo notebook, we can now get started exploring our data.
128-
129128
Let's imagine we are interested in checking how price has changed with time for a specific area in the UK such as the capital city, London.
130-
131-
ClickHouse's [remoteSecure](/docs/sql-reference/table-functions/remote) function allows you to easily retrieve the data from ClickHouse Cloud.
132-
129+
ClickHouse's [`remoteSecure`](/docs/sql-reference/table-functions/remote) function allows you to easily retrieve the data from ClickHouse Cloud.
133130
You can instruct chDB to return this data in process as a Pandas data frame - which is a convenient and familiar way of working with data.
134131

135132
### Querying ClickHouse Cloud data {#querying-clickhouse-cloud-data}
@@ -159,7 +156,7 @@ df.head()
159156

160157
In the snippet above, `chdb.query(query, "DataFrame")` runs the specified query and outputs the result as a Pandas DataFrame.
161158

162-
In the query we are using the `remoteSecure` function to connect to ClickHouse Cloud.
159+
In the query we are using the [`remoteSecure`](/sql-reference/table-functions/remote) function to connect to ClickHouse Cloud.
163160

164161
The `remoteSecure` functions takes as parameters:
165162
- a connection string
@@ -170,11 +167,9 @@ The `remoteSecure` functions takes as parameters:
170167
As a security best practice, you should prefer using environment variables for the username and password parameters rather than specifying them directly in the function, although this is possible if you wish.
171168

172169
The `remoteSecure` function connects to the remote ClickHouse Cloud service, runs the query and returns the result.
173-
174170
Depending on the size of your data, this could take a few seconds.
175171

176172
In this case we return an average price point per year, and filter by `town='LONDON'`.
177-
178173
The result is then stored as a DataFrame in a variable called `df`.
179174

180175
### Visualizing the data {#visualizing-the-data}

0 commit comments

Comments
 (0)