Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit edbb7f7

Browse filesBrowse files
committed
Update README example.
1 parent 7ccd8cb commit edbb7f7
Copy full SHA for edbb7f7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ Anecdotally, we use this to load approximately 640 million rows of data from a 7
2222
# Usage Example
2323

2424
```python3
25-
2625
from pandas_to_postgres import (
2726
DataFrameCopy,
2827
hdf_to_postgres,
29-
multiprocess_hdf_to_postgres,
3028
)
3129

3230
table_model = db.metadata.tables['my_awesome_table']
@@ -36,10 +34,10 @@ with db.engine.connect() as c:
3634
DataFrameCopy(df, conn=c, table_obj=table_model).copy()
3735

3836
# HDF from file
39-
hdf_to_postgres('./data.h5', db)
37+
hdf_to_postgres('./data.h5', engine_args=["psycopg://..."])
4038

4139
# Parallel HDF from file
42-
multiprocess_hdf_to_postgres('./data.h5', db, processes=4)
40+
hdf_to_postgres('./data.h5', engine_args=["psycopg://..."], processes=4)
4341
```
4442

4543
# Other Comparisons

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.