This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |