Generate-Noun-Banks
Setup Env & Run
- Install Python >= 3.7.
- Install Pandas with pip:
pip install pandas
.
- Import 'csv' Module: (Built-In)
Pre-Processing
- Load harvested files into
./nounbanks/
.
- Clean each nounBank (unnecessary characters, duplicate entries, or violations of LexiCrush game logic).
- Convert each noun bank into a Pandas dataframe.
- Setup up a connection using MySQLdb.
from pandas.io import sql
import MySQLdb
con = MySQLdb.connect()
- Use
df.to_sql()
method to populate a mySQL (configurable) style DB with contents from df.
Data Sources
USA States Surface Area
World Countries - Population
Word Countries - Surface Area
Big List of Animals
Link
SQLalchemy, MySQLdb.connect(), .to_sql()