Skip to content

Commit ff7c93a

Browse files
authored
Merge pull request #11 from marimo-team/aka/fix-import
add missing import
2 parents e155639 + 2e46349 commit ff7c93a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

explore_high_dimensional_data/explore_high_dimensional_data.py

+4-9
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def load_data():
4848

4949
data, labels = sklearn.datasets.load_digits(return_X_y=True)
5050
return data, labels
51-
5251
return (load_data,)
5352

5453

@@ -64,11 +63,11 @@ def embed_data(data):
6463
array.
6564
"""
6665
import sklearn
66+
import sklearn.decomposition
6767

68-
return sklearn.decomposition.PCA(n_components=2, whiten=True).fit_transform(
69-
data
70-
)
71-
68+
return sklearn.decomposition.PCA(
69+
n_components=2, whiten=True
70+
).fit_transform(data)
7271
return (embed_data,)
7372

7473

@@ -98,7 +97,6 @@ def scatter_data(df: pl.DataFrame) -> alt.Chart:
9897
)
9998
.properties(width=500, height=500)
10099
)
101-
102100
return (scatter_data,)
103101

104102

@@ -131,7 +129,6 @@ def show_selection(data, rows, max_rows=10):
131129
axes.set_xticks([])
132130
plt.tight_layout()
133131
return fig
134-
135132
return (show_selection,)
136133

137134

@@ -163,7 +160,6 @@ def _(load_data):
163160
@app.cell
164161
def _():
165162
import polars as pl
166-
167163
return (pl,)
168164

169165

@@ -218,7 +214,6 @@ def _(chart, data, mo, show_selection, table):
218214
@app.cell
219215
def _():
220216
import marimo as mo
221-
222217
return (mo,)
223218

224219

0 commit comments

Comments
 (0)