Skip to content

Instantly share code, notes, and snippets.

View marymlucas's full-sized avatar

Mary M Lucas marymlucas

View GitHub Profile
@marymlucas
marymlucas / connect_psycopg2_to_pandas.py
Created February 2, 2022 17:40 — forked from jakebrinkmann/connect_psycopg2_to_pandas.py
Read SQL query from psycopg2 into pandas dataframe
import pandas as pd
import pandas.io.sql as sqlio
import psycopg2
conn = psycopg2.connect("host='{}' port={} dbname='{}' user={} password={}".format(host, port, dbname, username, pwd))
sql = "select count(*) from table;"
dat = sqlio.read_sql_query(sql, conn)
conn = None
@marymlucas
marymlucas / xgboost_incremental.ipynb
Created January 25, 2023 01:41 — forked from ylogx/xgboost_incremental.ipynb
XGBoost Incremental Learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marymlucas
marymlucas / markdown-details-collapsible.md
Created April 30, 2024 18:21 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux