Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Change slow .iloc to .iat in dash-html-table-hyperlinks #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dash-html-table-hyperlinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

def Table(dataframe):
rows = []
cols = dataframe.columns
for i in range(len(dataframe)):
row = []
for col in dataframe.columns:
value = dataframe.iloc[i][col]
for j in range(len(cols)):
col = cols[j]
value = dataframe.iat[i,j]
# update this depending on which
# columns you want to show links for
# and what you want those links to be
Expand Down