File size: 1,835 Bytes
1cf66d0
 
 
 
 
 
 
 
 
 
18ca705
 
1cf66d0
18ca705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1cf66d0
 
 
18ca705
1cf66d0
 
18ca705
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
license: cc-by-sa-4.0
---

# DS-CodeBridge

A robust benchmark comprising **800** carefully curated bidirectionally translatable tasks across three important stages of data science workflows: **Data Querying**, **Data Manipulation**, and **Data Mining**.

# Download the Dataset

```python
from datasets import load_dataset

# Load the dl200 split in streaming mode
dl200_dataset = load_dataset(
    "xia01ongLi/DS-CodeBridge", 
    split="dl200",
    streaming=True  # Enable streaming mode
)

# Get the first example
first_example = next(iter(dl200_dataset))
print("First example:", first_example)
```
```python
from datasets import load_dataset

# Load the dq300 split in streaming mode
dq300_dataset = load_dataset(
    "xia01ongLi/DS-CodeBridge", 
    split="dq300",
    streaming=True  # Enable streaming mode
)

# Get the first example
first_example = next(iter(dq300_dataset))
print("First example:", first_example)
```
```python
from datasets import load_dataset

# Load the ds300 split in streaming mode
ds300_dataset = load_dataset(
    "xia01ongLi/DS-CodeBridge", 
    split="ds300",
    streaming=True  # Enable streaming mode
)

# Get the first example
first_example = next(iter(ds300_dataset))
print("First example:", first_example)
```

# DQ Database setup
## Postgresql Setup
* Download and install the postgresql from the official website: https://www.postgresql.org/download/
* Download the pgAdmin4 from the official website: https://www.pgadmin.org/download/ (Recommended to monitor the database)
* In pgADmin4/terminal create a new database you prefer
* Construct the database by run the following command (You can find PostgreSQL version database in the data folder):
```bash
psql -U USERNAME -d DB_NAME -f postgresql_db.sql
```

## Pandas DB Setup
* Donwload the Pandas version database from the data folder