How can I force the pandas table to be \textwidth or specific size. #5855
-
DescriptionHi I have the following cell in my import pandas as pd
# Global parameters
GEO_NAME = "Bronx"
SUBSTANCE_NAME = "Ozone (O3)"
AIR_QUALITY_LINK = "https://data.cityofnewyork.us/api/views/c3uy-2p5r/rows.csv?accessType=DOWNLOAD"
# Read data
df = pd.read_csv(AIR_QUALITY_LINK)
df.head(10) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
The only solution is to decrease font size, or to avoid having wide tables in the first place.
There is not auto-resize in LaTeX.
You have to do that yourself.
See an example (and one way amongst others) below.