Skip to content

Instantly share code, notes, and snippets.

View Fernigithub's full-sized avatar
👋

Fernando Tentor Fernigithub

👋
View GitHub Profile
@Fernigithub
Fernigithub / streamlit_center_text.py
Created December 12, 2022 11:00 — forked from chandraseta/streamlit_center_text.py
Center text for Streamlit with optional container
import streamlit as st
from streamlit.delta_generator import DeltaGenerator
def display_centered_text(text: str, container: Optional[DeltaGenerator] = None):
if container is not None:
container.markdown(
f"<div style='text-align: center;'>{text}</div>",
unsafe_allow_html=True)
@Fernigithub
Fernigithub / lowess.py
Created April 5, 2018 14:36 — forked from agramfort/lowess.py
LOWESS : Locally weighted regression
"""
This module implements the Lowess function for nonparametric regression.
Functions:
lowess Fit a smooth nonparametric regression curve to a scatterplot.
For more information, see
William S. Cleveland: "Robust locally weighted regression and smoothing
scatterplots", Journal of the American Statistical Association, December 1979,