I want to export a Pandas DataFrame to LaTeX with . as a thousand seperator and , as a decimal seperator and two decimal digits. E.g. 4.511,34
import numpy as np
import pandas as pd
df = pd.DataFrame(
np.array([[4511.34242, 4842.47565]]),
columns=['col_1', 'col_2']
)
df.to_latex('table.tex', float_format="{:0.2f}".format)
Ho can I achieve this? If I change the . to an , in the code I receive ValueError: Invalid format specifier. Thank you!