1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-146: change request with no subject merged in GitBook

This commit is contained in:
Veronica Manuel 2023-05-17 15:14:33 +00:00 committed by gitbook-bot
parent 04ca0abf88
commit fc25355b00
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -10,8 +10,10 @@ description: >-
The beginning of any great algorithm for Compute-to-Data first starts by referencing the dataset file correctly on the Docker container. Here is the code in both Python and Javascript for how to correctly reference your dataset file on the Docker container:
### Python - Open the local dataset file
### Open the local dataset file
{% tabs %}
{% tab title="Python" %}
```
import csv
import json
@ -46,25 +48,9 @@ with open(input_filename, 'r') as file:
<YOUR CODE GOES HERE>
```
{% endtab %}
**Note:** Here are the following Python libraries that you can use in your code:
```
// Python modules
numpy==1.16.3
pandas==0.24.2
python-dateutil==2.8.0
pytz==2019.1
six==1.12.0
sklearn
xlrd == 1.2.0
openpyxl >= 3.0.3
wheel
matplotlib
```
### Javascript - Open the local dataset file
{% tab title="Javascript" %}
```
const fs = require("fs");
@ -90,3 +76,21 @@ async function processfolder(Path) {
processfolder(input_folder);
```
{% endtab %}
{% endtabs %}
**Note:** Here are the following Python libraries that you can use in your code:
```
// Python modules
numpy==1.16.3
pandas==0.24.2
python-dateutil==2.8.0
pytz==2019.1
six==1.12.0
sklearn
xlrd == 1.2.0
openpyxl >= 3.0.3
wheel
matplotlib
```