Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.9K
Visualizações
Dataframe_image OsError: Chrome executable not able to be found on your machine

I am trying to run my script in Databricks using dataframe_image library to style my table and later save this as .png file and getting an error OsError: Chrome executable not able to be found on your machine. Per documentation I need to add table_conversion = 'matplotlib'

import pandas as pd
import numpy as np 
np.random.seed(0)

df = pd.DataFrame(np.random.randn(10,4), columns=['A','B','C','D'])
def highlight_max(s, props=''):
    return np.where(s == np.nanmax(s.values), props, '')
styled_table = df.style.apply(highlight_max, props='color:red;', axis=1)\
         .set_properties(**{'background-color': '#ffffb3'})

import dataframe_image as dfi # you might need to pip install dataframe-image

dfi.export(styled_table, 'file1.png', table_conversion = 'matplotlib')

As result all styles are lost.

Note: When I ran the same script in Jupyter using table_conversion = 'chrome' everything was working fine. I was wondering if there is a workaround. Any recommendations are welcome. Thanks.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

For a Debian based os:

apt install chromium-chromedriver

Solved it for me.

Chrome executable error #6

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda