Create SQL Database From Pandas DataFrame in Python with SQL Alchemy

preview_player
Показать описание
Want to create a database for your Python app in just a few lines of code? Here's how to quickly make a SQL database from a pandas dataframe by using SQL Alchemy.

You can get all the code from the video on my github below.

0:23 open the docs
0:46 pip install SLQAlchemy
1:07 import modules
1:41 confirm working directory
2:00 create pandas dataframe
2:25 create engine object in SQL Alchemy
4:24 working with SQL commands
5:46 get all column names from SQL table
6:12 select all data from SQL table and print
6:27 drop SQL table and dispose of engine object

- - -

Subscribe to join our community and receive value on all things finance and technology!

If you love the content, buy me a coffee!

Keep up with me!

- - -

Need some ideas for your project portfolio?

Check out how to get stock price data in Python with TD Ameritrade API.

Here's how to stream real time option data in Python with TD Ameritrade API.

Here's how to build a web scraping robot that gets crypto price data in Python

- - -

Рекомендации по теме
Комментарии
Автор

Finance Family! Let me know what you think.
Subscribe to join our community and receive value on all things finance and technology!

If you love the content, buy me a coffee!

Keep up with me!

damgetbags
Автор

Would love to see a part n where you remove rows and perhaps eventually deploy the dB to be accessible to the public.

I’m personally building something like this and it will work like the yfinance package, but with my own database over a REST API as the backend

boondock-saint