Skip to content

Instantly share code, notes, and snippets.

View KC2016's full-sized avatar
πŸ™
always learning

KarinaC KC2016

πŸ™
always learning
  • KC2016.github.io
View GitHub Profile
@amitrani6
amitrani6 / PostgreSQL__Initialization_Configuration_Pandas.py
Created November 7, 2019 23:18
A Python script that connects to a PostgreSQL database with an initialization and configuration file to create a Pandas data frame.
# This Python script connects to a PostgreSQL database and utilizes Pandas to obtain data and create a data frame
# A initialization and configuration file is used to protect the author's login credentials
import psycopg2
import pandas as pd
# Import the 'config' funtion from the config.py file
from config import config
# Establish a connection to the database by creating a cursor object
@shaypal5
shaypal5 / .travis.yml
Last active November 28, 2023 19:45
Comprehensive Python testing on Travis CI
language: python
# ===== Linux ======
os: linux
dist: xenial
python:
- 2.7
- 3.6
- 3.7
- 3.8
- 3.9
# Create data from three different multivariate distributions
X_1 = np.random.multivariate_normal(mean=[4, 0], cov=[[1, 0], [0, 1]], size=75)
X_2 = np.random.multivariate_normal(mean=[6, 6], cov=[[2, 0], [0, 2]], size=250)
X_3 = np.random.multivariate_normal(mean=[1, 5], cov=[[1, 0], [0, 2]], size=20)
df = np.concatenate([X_1, X_2, X_3])
# Run kmeans
km = KMeans(n_clusters=3)
km.fit(df)
labels = km.predict(df)
@rxaviers
rxaviers / gist:7360908
Last active April 29, 2025 23:50
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: