Skip to content

Instantly share code, notes, and snippets.

import pandas as pd
from sklearn.preprocessing import LabelEncoder, StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
# Parâmetros
path = 'D:\\dados\\leads.xlsx'
#Importação
df_leads = pd.read_excel(path)
@vschmidt
vschmidt / leads.csv
Last active November 12, 2020 16:00
Conjunto de dados de clientes
ID do Cliente Origem do Cliente Não receber emails Não receber ligações Visitas ao site Última atividade Veio por recomendação Conseguiu vender
660737 Chat 0 0 0 Visita ao website 0 0
660728 Busca orgânica 0 0 5 Email aberto 0 0
660727 Tráfego direto 0 0 2 Email aberto 0 1
660719 Tráfego direto 0 0 1 Inacessível 0 0
660681 Google 0 0 2 Convertido para lead 0 1
660680 Chat 0 0 0 Conversa com chat 0 0
@vschmidt
vschmidt / Basic API call (TypeScript).yaml
Created November 19, 2018 13:14
Performs a basic Excel API call using TypeScript. - Shared with Script Lab
name: Basic API call (TypeScript)
description: Performs a basic Excel API call using TypeScript.
author: vschmidt
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {