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:
parent
04ca0abf88
commit
fc25355b00
@ -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:
|
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 csv
|
||||||
import json
|
import json
|
||||||
@ -46,25 +48,9 @@ with open(input_filename, 'r') as file:
|
|||||||
|
|
||||||
<YOUR CODE GOES HERE>
|
<YOUR CODE GOES HERE>
|
||||||
```
|
```
|
||||||
|
{% endtab %}
|
||||||
|
|
||||||
**Note:** Here are the following Python libraries that you can use in your code:
|
{% tab title="Javascript" %}
|
||||||
|
|
||||||
```
|
|
||||||
// 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
|
|
||||||
|
|
||||||
```
|
```
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
@ -90,3 +76,21 @@ async function processfolder(Path) {
|
|||||||
processfolder(input_folder);
|
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
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user