Skip to content

Instantly share code, notes, and snippets.

View CaioEuzebio's full-sized avatar
🎯
Focusing

Caio Euzébio CaioEuzebio

🎯
Focusing
View GitHub Profile
@CaioEuzebio
CaioEuzebio / WordCount.py
Created March 12, 2019 21:49
Word Count
file = open('filetext.txt')
text = file.read()
text = text.lower()
import string
for c in string.punctuation:
text = text.replace(c, ' ')
text = text.split()
d = {}
for p in text:
import pandas as pd
import csv
from pandas import *
import os
import numpy as np
df1 = pd.read_csv('Sales.csv')
df1.index=df1['Ordem']
df3 = df1.assign(col=df1.groupby(level=0).Produto.cumcount()).pivot(columns='col', values='Produto')
import base64
import datetime
import io
from dash.exceptions import PreventUpdate
import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html
import dash_table
import dash_bootstrap_components as dbc