Skip to content

Commit edbb7f7

Browse files
committed
Update README example.
1 parent 7ccd8cb commit edbb7f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

+2-4
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)