| ▲ | reedf1 a day ago | |||||||
The model (and you) have inferred completely without context that index_value is meant to somehow map to the dataframe index. What if this is raw .csv data from another system. I work with .csv files from financial indices - index_value (or sometimes index_level) confers completely different meaning in this case. | ||||||||
| ▲ | zahlman a day ago | parent | next [-] | |||||||
This inference is not at all "without context". It's based on the meaning of "index", and the contextual assumption that reasonable people put things into CSV columns whose intended purpose aligns with the semantic content of the column's title. | ||||||||
| ||||||||
| ▲ | minimaxir a day ago | parent | prev [-] | |||||||
That is a fair counterpoint, but if that were the case, there would always be more context accessible, e.g. the agent could do a `df.head()` to get an overview of the data and columns (which would indicate financial indices) or there would be code after that which would give strong signal that the intent is financial indices and not the DataFrame index. This is why vague examples in blog posts aren't great. | ||||||||