We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I colorized my float with basic Python feature :
row_data["reference"] = "\033[31m{}\033[0m".format(value_data_ref)
After few manipulations, I put these floats in a column of my Pandas Dataframe.
data_results = pd.DataFrame(data_results) print(data_results)
Works well :
Header are not well positioned, but Pd dataframe works well.
Then, I print the table with tabulate module.
print(tabulate(data_results, headers="keys", tablefmt="fancy_grid", maxcolwidths=30, showindex=False))
Error occurs here :
ValueError: could not convert string to float: '\x1b[31m965.3344\x1b[0m'
Use a column with formated data. In my case this row :
With numbers in column "reference" print in red.
The text was updated successfully, but these errors were encountered:
This PR would solve my problem ! (#135)
Sorry, something went wrong.
No branches or pull requests
Description
I colorized my float with basic Python feature :
After few manipulations, I put these floats in a column of my Pandas Dataframe.
Works well :
Header are not well positioned, but Pd dataframe works well.
Then, I print the table with tabulate module.
Error occurs here :
ValueError: could not convert string to float: '\x1b[31m965.3344\x1b[0m'
Reproduce
Use a column with formated data. In my case this row :
Expected behavior
With numbers in column "reference" print in red.
Context
The text was updated successfully, but these errors were encountered: