Skip to content

Commit e8e83c0

Browse files
authored
Merge pull request #3 from const7/fix-pandas
Update deprecated pandas api since v2.0 [pandas-dev/pandas#49397]
2 parents 2222caf + a4f58e7 commit e8e83c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/neuroquery_image_search/_searching.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def studies_to_html_table(studies):
3333
studies.style.bar(
3434
subset=["Similarity"], color="lightgreen", width=98, vmin=0.0
3535
)
36-
.hide_index()
37-
.hide_columns(["pmid", "title", "pubmed_url"])
36+
.hide(axis=0)
37+
.hide(["pmid", "title", "pubmed_url"], axis=1)
3838
.format({"Similarity": "{:.2f}"})
3939
.set_table_attributes('class="studies-table"')
40-
.render()
40+
.to_html()
4141
)
4242
return table
4343

@@ -67,10 +67,10 @@ def terms_to_html_table(terms):
6767
terms.style.bar(
6868
subset=["Similarity"], color="lightgreen", width=95, vmin=0.0
6969
)
70-
.hide_index()
70+
.hide(axis=0)
7171
.format({"Similarity": "{:.2f}"})
7272
.set_table_attributes('class="terms-table"')
73-
.render()
73+
.to_html()
7474
)
7575
return table
7676

0 commit comments

Comments
 (0)