tpl / preprocessing /pre-processing.md
cassiebuhler's picture
whoops gotta add these back
1d924fc

A newer version of the Streamlit SDK is available: 1.51.0

Upgrade
metadata
jupytext:
  formats: md:myst
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
    jupytext_version: 1.16.2
kernelspec:
  display_name: Python 3 (ipykernel)
  language: python
  name: python3
import ibis
from ibis import _
from minio import Minio
import streamlit as st
from datetime import timedelta
# Get signed URLs to access license-controlled layers
key = st.secrets["MINIO_KEY"]
secret = st.secrets["MINIO_SECRET"]
client = Minio("minio.carlboettiger.info", key, secret)

parquet = client.get_presigned_url(
    "GET",
    "shared-tpl",
    "tpl.parquet",
    expires=timedelta(hours=2),
)
con = ibis.duckdb.connect()
df = con.read_parquet(parquet)