jazzband / prettytable

Display tabular data in a visually appealing ASCII table format
https://pypi.org/project/PrettyTable/
Other
1.35k stars 154 forks source link

Support displaying selected fields for CSV format #253

Closed DuoLife-QNL closed 3 weeks ago

DuoLife-QNL commented 1 year ago

When calling get_string or get_html_string or get_latex_string and passing fields = ["field1", "field2"] as the parameter, the output strings in either format contain the given fields in fields only. However, when calling get_csv_string or get_json_string, that does not work. It seems that these two functions do not take this setting into consideration.