Week 8 notes completed

This commit is contained in:
levdoescode
2023-03-01 01:43:35 -05:00
parent fc7b45ca26
commit 7e2abe660f

View File

@ -89,3 +89,30 @@ connection.query(insertCommand,
);
```
### Python for data
* Graphing
* Matlibplot / Pyplot
* Data analysis and ML
* Numpy
* Pandas
* TensorFlow
* Web crawling and scraping
* BeautifulSoup
### Querying
```python
curosr = conn.cursor()
cursor.execute(query)
result = cursor.fetchall()
for row in cursor:
print(row['diameter']) # get column in row by name
```
### Transactions
auto_commit is OFF by default
Everything is considered a transaction and the changes need to be committed
```python
cursor.execute(update1)
cursor.execute(update2)
cursor.commit()
```