Skip to content

Commit

Permalink
Change DataFrame.display() to DataFrame.style to make notebooks work …
Browse files Browse the repository at this point in the history
…in SFNB (#54)
  • Loading branch information
sfc-gh-wezhou authored Aug 26, 2024
1 parent f4695fa commit c5ccc7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"source": [
"- Required snowflake-ml-python version: >=**1.6.1**\n",
"- Last updated on: 8/6/2024"
"- Last updated on: 8/26/2024"
]
},
{
Expand Down Expand Up @@ -440,7 +440,7 @@
"for table in source_tables:\n",
" print(f\"{table}:\")\n",
" df = session.table(table).limit(5).to_pandas()\n",
" display(df)"
" df.style"
]
},
{
Expand Down Expand Up @@ -697,7 +697,7 @@
"\n",
"for fv in all_feature_views:\n",
" print(f\"{fv.name}/{fv.version} has features:\")\n",
" display(pd.DataFrame(fv.feature_descs.items(), columns=['Name', 'Desc']))"
" pd.DataFrame(fv.feature_descs.items(), columns=['Name', 'Desc']).style"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions Feature Store API Overview/Feature Store API Overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"- Last updated on: 8/6/2024\n",
"- Last updated on: 8/26/2024\n",
"- Required snowflake-ml-python version: >=**1.6.1**"
]
},
Expand Down Expand Up @@ -408,7 +408,7 @@
"for table in source_tables:\n",
" print(f\"{table}:\")\n",
" df = session.table(table).limit(5).to_pandas()\n",
" display(df)"
" df.style"
]
},
{
Expand Down

0 comments on commit c5ccc7b

Please sign in to comment.