Первый элемент сетки из фрейма данных pandas отображается неправильно при использовании Flask/Django. ⇐ CSS
-
Anonymous
Первый элемент сетки из фрейма данных pandas отображается неправильно при использовании Flask/Django.
I'm kind of new to this and I'm trying to display a pandas dataframe in a grid using Django, but the first item of the dataframe is not displayed as a grid item.
Dataframe:
Index Title 0 item1 1 item2 2 item3
html template:
} .grid-container{ display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; } .grid-item{ border: 1px solid #000000; padding: 10px; text-align: center; } Sample DataFrame
Источник: https://stackoverflow.com/questions/780 ... using-flas
I'm kind of new to this and I'm trying to display a pandas dataframe in a grid using Django, but the first item of the dataframe is not displayed as a grid item.
Dataframe:
Index Title 0 item1 1 item2 2 item3
html template:
} .grid-container{ display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; } .grid-item{ border: 1px solid #000000; padding: 10px; text-align: center; } Sample DataFrame
Источник: https://stackoverflow.com/questions/780 ... using-flas
Мобильная версия