Skip to content

Commit 4d3856f

Browse files
committed
2 parents d79b6f6 + 4fefc59 commit 4d3856f

5 files changed

Lines changed: 37 additions & 3 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
custom: ['https://www.buymeacoffee.com/hackersslackers']

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
.DS_Store

README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,34 @@
55
![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-1.3.6-red.svg?longCache=true&style=flat-square&logo=scala&logoColor=white&colorA=4c566a&colorB=bf616a)
66
![Psycopg2-Binary](https://img.shields.io/badge/Psycopg2--Binary-v2.7.7-red.svg?longCache=true&style=flat-square&logo=PostgreSQL&logoColor=white&colorA=4c566a&colorB=bf616a)
77
![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c)
8-
[![GitHub Issues](https://img.shields.io/github/issues/toddbirchard/pandas-sqlalchemy-tutorial.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/toddbirchard/googlecloud-storage-tutorial/issues)
9-
[![GitHub Stars](https://img.shields.io/github/stars/toddbirchard/pandas-sqlalchemy-tutorial.svg?style=flat-square&colorB=ebcb8b&colorA=4c566a)](https://github.com/toddbirchard/googlecloud-storage-tutorial/stargazers)
10-
[![GitHub Forks](https://img.shields.io/github/forks/toddbirchard/pandas-sqlalchemy-tutorial.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/toddbirchard/googlecloud-storage-tutorial/network)
8+
[![GitHub Issues](https://img.shields.io/github/issues/hackersandslackers/pandas-sqlalchemy-tutorial.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial/issues)
9+
[![GitHub Stars](https://img.shields.io/github/stars/hackersandslackers/pandas-sqlalchemy-tutorial.svg?style=flat-square&colorB=ebcb8b&colorA=4c566a)](https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial/stargazers)
10+
[![GitHub Forks](https://img.shields.io/github/forks/hackersandslackers/pandas-sqlalchemy-tutorial.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial/network)
11+
12+
![Pandas SQLAlchemy Tutorial](https://res-5.cloudinary.com/hackers/image/upload/q_auto:best/v1/2019/12/pandas-sqlalchemy-databases%402x.jpg)
13+
14+
Easily drop data into Pandas from a SQL database, or upload your DataFrames to a SQL table. Tutorial found here: https://hackersandslackers.com/connecting-pandas-to-a-sql-database-with-sqlalchemy/
15+
16+
## Getting Started
17+
18+
Installation is recommended with Pipenv:
19+
20+
```shell
21+
$ git clone https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial.git
22+
$ cd pandas-sqlalchemy-tutorial
23+
$ pipenv shell
24+
$ pipenv update
25+
$ python3 main.py
26+
```
27+
28+
Alternatively, try installing via `setup.py`:
29+
30+
```shell
31+
$ git clone https://github.com/hackersandslackers/pandas-sqlalchemy-tutorial.git
32+
$ cd pandas-sqlalchemy-tutorial
33+
$ python3 setup.py install
34+
$ python3 main.py
35+
```
36+
-----
37+
38+
**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ def get_dataframe_from_sql(table_name):
5151

5252

5353
jobs_DF = prepare_data()
54+
print(jobs_DF.info())
5455
upload_dataframe_to_sql(jobs_DF)
5556
get_dataframe_from_sql('nyc_jobs')

0 commit comments

Comments
 (0)