File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Original file line number Diff line number Diff line change @@ -22,11 +22,9 @@ Anecdotally, we use this to load approximately 640 million rows of data from a 7
22
22
# Usage Example
23
23
24
24
``` python3
25
-
26
25
from pandas_to_postgres import (
27
26
DataFrameCopy,
28
27
hdf_to_postgres,
29
- multiprocess_hdf_to_postgres,
30
28
)
31
29
32
30
table_model = db.metadata.tables[' my_awesome_table' ]
@@ -36,10 +34,10 @@ with db.engine.connect() as c:
36
34
DataFrameCopy(df, conn = c, table_obj = table_model).copy()
37
35
38
36
# HDF from file
39
- hdf_to_postgres(' ./data.h5' , db )
37
+ hdf_to_postgres(' ./data.h5' , engine_args = [ " psycopg://... " ] )
40
38
41
39
# 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 )
43
41
```
44
42
45
43
# Other Comparisons
You can’t perform that action at this time.
0 commit comments