Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hi there!

Dayvson Silva userddssilva

💭
Hi there!
View GitHub Profile
@userddssilva
userddssilva / mysql-pandas-import.py
Created Jan 31, 2020 — forked from stefanthoss/mysql-pandas-import.py
Import data from a MySQL database table into a Pandas DataFrame using the pymysql package.
View mysql-pandas-import.py
import pandas as pd
import pymysql
from sqlalchemy import create_engine
engine = create_engine('mysql+pymysql://<user>:<password>@<host>[:<port>]/<dbname>')
df = pd.read_sql_query('SELECT * FROM table', engine)
df.head()
@userddssilva
userddssilva / .vimrc
Created Sep 1, 2021 — forked from RodrigoCMoraes/.vimrc
Minimal .vimrc
View .vimrc
" remap escape key to jk
imap jk <Esc>
" when possible cursor is in center of screen
nnoremap j jzz
nnoremap k kzz
nnoremap `` ``zz
" general settings
set rnu et ts=4 sw=4 sts=4 ai cindent nowrap noswapfile cursorline splitbelow splitright