Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tetras-bi-data-example
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tetras-libre
jupyter
tetras-bi-data-example
Commits
b305a8eb
Verified
Commit
b305a8eb
authored
4 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Data example
parent
580bfcbd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
data/Readme.md
+7
-3
7 additions, 3 deletions
data/Readme.md
data/__init__.py
+0
-0
0 additions, 0 deletions
data/__init__.py
data/example.py
+14
-0
14 additions, 0 deletions
data/example.py
with
21 additions
and
3 deletions
data/Readme.md
+
7
−
3
View file @
b305a8eb
...
@@ -6,10 +6,14 @@ It works as follow
...
@@ -6,10 +6,14 @@ It works as follow
```
```
data/
data/
mydata.py # Python script exposing three methods
__init__.py # make the path importable
mydata.py # Python script exposing the following methods
# extractLastData() -> scraps the last data and return the downloaded file path
# extractLastData() -> scraps the last data and return the downloaded file path
# Upload(path) -> upload data contained in path
# upload_data(path) -> upload data contained in path
# getDataSample() -> return a sample data for debugging pupose
# get_sample() -> return a sample data for debugging pupose
# get_name() -> return the importer name
# get_desc() -> return the importer description
# get_last_import_info() -> return some information concerning the last import
dashboard/
dashboard/
myfirstdashboard.ipynb # Ipynotebook dashboard that will be rendered by voila
myfirstdashboard.ipynb # Ipynotebook dashboard that will be rendered by voila
myfirstdashboard_housekeeping.py # Python script that generates data aggregates for myfirstdashbord
myfirstdashboard_housekeeping.py # Python script that generates data aggregates for myfirstdashbord
...
...
This diff is collapsed.
Click to expand it.
data/__init__.py
0 → 100644
+
0
−
0
View file @
b305a8eb
This diff is collapsed.
Click to expand it.
data/example.py
0 → 100644
+
14
−
0
View file @
b305a8eb
def
get_name
():
return
"
Example
"
def
get_desc
():
return
"
Script d
'
exemple de gestion de données
"
def
get_sample
():
return
"
Col1,Col2,Col3
\n
aaa,bbb,ccc
"
def
upload_data
(
path
):
print
(
path
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment