Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import streamlit as st
- from pyinstrument import Profiler
- profiler = Profiler()
- profiler.start()
- st.header('aaa')
- import pandas as pd
- import numpy as np
- file = 'https://raw.githubusercontent.com/CharlyWargnier/CSVHub/main/Tommy-Macys-encoding-ISO-8859-1/CK_categories.csv'
- names=['URL','Category']
- print(file)
- df=pd.read_csv(file, encoding='latin-1', names=names, na_filter=False)
- df = df.iloc[1:]
- df.head()
- profiler.stop()
- st.write(profiler.output_text(unicode=True, color=True))
- print(profiler.output_text(unicode=True, color=True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement