daru_plotly 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +17 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Dockerfile +21 -0
- data/Gemfile +4 -0
- data/README.md +11 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/daru_plotly.gemspec +32 -0
- data/examples/001.csv +6453 -0
- data/examples/O_TUKIBETSU_NENREI.csv +107 -0
- data/examples/plots.ipynb +932 -0
- data/examples/wine.csv +1 -0
- data/lib/daru_plotly.rb +20 -0
- data/lib/initializer/category.rb +11 -0
- data/lib/initializer/dataframe.rb +58 -0
- data/lib/initializer/vector.rb +44 -0
- data/lib/version.rb +5 -0
- metadata +203 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9b2466bbba48dd0757d7450e69c66e3f7cac3546
|
4
|
+
data.tar.gz: 46f98f4e01e4b76e17db92e9430221991bd57f56
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bbdf3cb9c575f1a7051672cc9eddadcae7b6b3b76dc83d92966d57ff966b505650eee79b79fcf602751e466a587bb1aac708e3de25e3288f3faa525490426cee
|
7
|
+
data.tar.gz: '0291ee88fb0fc9555c9a7869465bce762ad5d092ea577d7796c41594bd16f279cbd8909877ddde2e72466eba526ef91decb2ffbb48e201ec695b28288c198cfa'
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at TODO: Write your email address. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
FROM ruby:2.3
|
2
|
+
|
3
|
+
WORKDIR /tmp
|
4
|
+
|
5
|
+
RUN apt-get update
|
6
|
+
RUN apt-get install -y vim
|
7
|
+
|
8
|
+
RUN apt-get install -y python3-dev libzmq3-dev python3-pip
|
9
|
+
RUN pip3 install 'ipython[notebook]'
|
10
|
+
|
11
|
+
RUN apt-get install -y libtool-bin uuid-dev
|
12
|
+
ADD Gemfile /tmp
|
13
|
+
ADD daru_plotting_plotly.gemspec /tmp
|
14
|
+
RUN mkdir -p /tmp/lib/daru_plotting_plotly
|
15
|
+
ADD lib/daru_plotting_plotly/version.rb /tmp/lib/daru_plotting_plotly
|
16
|
+
RUN bundle install
|
17
|
+
RUN find /usr/local/bundle/gems/daru-0.1.4.1/lib/daru/ -name "*.rb" | xargs sed -i -e "s/ArguementError/ArgumentError/g"
|
18
|
+
|
19
|
+
WORKDIR /root
|
20
|
+
EXPOSE 8888
|
21
|
+
CMD iruby notebook --ip 0.0.0.0
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/genya0407/daru_plotting_plotly.svg?branch=master)](https://travis-ci.org/genya0407/daru_plotting_plotly)
|
2
|
+
|
3
|
+
# daru\_plotting\_plotly
|
4
|
+
|
5
|
+
This gem connects [Rbplotly](https://github.com/ash1day/rbplotly) with [Daru](https://github.com/SciRuby/daru).
|
6
|
+
|
7
|
+
Ruby version should be >= 2.3
|
8
|
+
|
9
|
+
# usage
|
10
|
+
|
11
|
+
Refer to this [example](http://nbviewer.jupyter.org/github/genya0407/daru_plotting_plotly/blob/master/examples/plots.ipynb).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "daru_plotly"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/daru_plotly.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "daru_plotly"
|
8
|
+
spec.version = Daru::Plotly::VERSION
|
9
|
+
spec.authors = ["Yusuke Sangenya"]
|
10
|
+
spec.email = ["longinus.eva@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Plot Daru's DataFrame with plotly.}
|
13
|
+
spec.description = %q{Plot Daru's DataFrame with plotly.}
|
14
|
+
spec.homepage = "https://github.com/genya0407/daru_plotly"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "daru"
|
22
|
+
spec.add_dependency "rbplotly"
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "rbczmq"
|
28
|
+
spec.add_development_dependency "iruby"
|
29
|
+
spec.add_development_dependency "spreadsheet"
|
30
|
+
spec.add_development_dependency "nyaplot"
|
31
|
+
spec.add_development_dependency "gruff"
|
32
|
+
end
|