StatsReporting / stargazer

Python implementation of the R stargazer multiple regression model creation tool
Other
197 stars 48 forks source link

Add option to provide latex label, or remove it #39

Closed MaxGhenis closed 4 years ago

MaxGhenis commented 4 years ago

Currently the latex output includes an empty label in the header:

https://github.com/mwburke/stargazer/blob/052b3418fc91c304dd8e78d7a470182ee57b1296/stargazer/stargazer.py#L443

When using multiple empty labels, tex editors throw a warning (multiple tables with the same label). Unless there's a reason for this I'm missing, I think it would be preferable to offer a function to specify the label, and if that's not provided, to skip the label line.