Daniel Himmelstein

Results 630 comments of Daniel Himmelstein

> I'd be someone receptive to adding a flag to replace parameter cells if it was useful for others as an option flag. Ooh. That does seem like it could...

+1 to making ` --include-in-header` append to `header-includes` rather than overwriting it. The current behavior is leading to a poor user experience in the wild. See https://github.com/manubot/rootstock/issues/275: the `pandoc-eqnos` filter...

> metadata values are used only if the corresponding variable doesn't have a value set on the command line. And the effect of `--include-in-header` is to set the variable. That's...

> A warning is printed in the case that there is a risk of the header-includes being overridden. Instructions are given so that the user knows what to write into...

Would be nice to have GitHub render the README as markdown by adding a `.md` extension. It looks like much of the readme would actually render sufficiently in markdown, even...

> https://github.com/dhimmel/obonet should be integrated Opened https://github.com/pysemtec/semantic-python-overview/pull/10 to add [obonet](https://github.com/dhimmel/obonet) and [nxontology](https://github.com/related-sciences/nxontology), which is a more general purpose successor I've been working on.

> will have somthing to add (e.g., pronto) Pronto already added by https://github.com/pysemtec/semantic-python-overview/commit/33b5a7a10b84969a4df440902c4c6ad2e6b13c6c

@wdduncan what type is `result` in your answer? I am looking to convert an `rdflib.plugins.sparql.processor.SPARQLResult` object to a pandas DataFrame in `rdflib` version 5.0.0. Here are some things I've tried...

> My simple solution was so far Noting my reply at https://github.com/RDFLib/rdflib/issues/1179#issuecomment-704261776. I realized the original issue here was about converting a [`SPARQLWrapper.Wrapper.QueryResult`](https://github.com/RDFLib/sparqlwrapper/blob/d88b542fdf39dfea8ee8567ed3c3fea3cb9cf975/SPARQLWrapper/Wrapper.py#L816) object to a DataFrame. Whereas my question...

Thanks @matentzn. `.toPython()` was the missing piece. Here's a function to convert `rdflib.plugins.sparql.processor.SPARQLResult` to a DataFrame that converts types: ```python from pandas import DataFrame from rdflib.plugins.sparql.processor import SPARQLResult def sparql_results_to_df(results:...