Giter Club home page Giter Club logo

Comments (10)

philippjfr avatar philippjfr commented on September 28, 2024

Thanks for the feedback. I had actually planned on splitting the Pandas/Seaborn tutorial into two separate notebooks. The first will focus on the Pandas conversion interface, which allows you to convert a Pandas pd.dataframe of any number of columns into HoloViews objects (and the reverse). While the second will focus on the specialized plots that pandas and seaborn provide. I'll try to get that uploaded by tomorrow.

from holoviews.

philippjfr avatar philippjfr commented on September 28, 2024

I finally added a new Pandas conversion tutorial, which takes a more step-by-step approach to working with dataframes in HoloViews. Note that the API for conversion isn't necessarily fixed and could certainly use some improvements. Any and all feedback of how to improve the API itself or to make the Tutorial clearer is welcome.

I'll also be updating the Pandas and Seaborn in the near future to provide a reference to the additional conversion types and make it a bit clearer how to use the DFrame Element to visualize some of the Seaborn Grid types, e.g. FacetGrid and PairGrid, directly. For now I'll close this issue, if you have any specific questions or problems feel free to open another issue.

from holoviews.

dartdog avatar dartdog commented on September 28, 2024

That looks great! Will dig into it..

On Tue, Mar 24, 2015 at 9:36 AM, Philipp Rudiger [email protected]
wrote:

Closed #24 #24.


Reply to this email directly or view it on GitHub
#24 (comment).

Tom Brander
http://tombrander.com -Real Estate
http://oswco.com -Open Software
3763 West Jackson Blvd.
Birmingham, AL 35213
Phone 205-267-1089
@dartdog

from holoviews.

dartdog avatar dartdog commented on September 28, 2024

I downloaded the notebook and all ran as expected except the 1st Multiple Keys Dimensions example:
Other subsequent example run fine..

%%opts Bars aspect=3 figure_size=400 category_index=2 stack_index=0 group_index=1 color_by=['stack']
macro.bars(['country', 'year'], 'trade', reduce_fn=np.mean)

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/holoviews/ipython/display_hooks.py", line 190, in wrapped
*_kwargs)
File "/usr/local/lib/python2.7/dist-packages/holoviews/ipython/display_hooks.py", line 220, in element_display
*_opts(element, get_plot_size(element, size)))()
File "/usr/local/lib/python2.7/dist-packages/holoviews/plotting/chart.py", line 779, in call
self.handles['bars'], xticks = self._create_bars(axis, element)
File "/usr/local/lib/python2.7/dist-packages/holoviews/plotting/chart.py", line 866, in _create_bars
for cg in self.color_by if indices[cg] < ndims]
IndexError: list index out of range

from holoviews.

philippjfr avatar philippjfr commented on September 28, 2024

Yes, thanks for reporting back. There was a bug in the Bar plotting code, which I only just fixed. If you're using a Git clone simply pull the latest commits, otherwise we'll be uploading a bugfix release to PyPi later tonight.

In fact the Bars plot is one of the latest Elements we added and also one of the most complex. I'll be improving it and adding more plot options to customize it gradually.

from holoviews.

dartdog avatar dartdog commented on September 28, 2024

I was just browsing the commits and saw you working in the area, and that you are planning to update to pypi,, I did try to do a pip install update from github just now and got.. (on two attempts)
FWIW...
sudo pip install -U https://github.com/ioam/holoviews.gitDownloading/unpacking https://github.com/ioam/holoviews.git

return fp.read().decode('utf-8')

File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte

from holoviews.

philippjfr avatar philippjfr commented on September 28, 2024

When pip installing directly from git you'll need to prepend git+ to the url, so the working command is as follows:

sudo pip install -U git+https://github.com/ioam/holoviews.git

Note that this may take a while as it's pulling in our testing reference_data, which is fairly large. Edit: Actually I don't think it does, so I don't know why it takes so long.

from holoviews.

dartdog avatar dartdog commented on September 28, 2024

And it does take a long time to DL... Cancelled it once and restarted...

All set now, except using IPython NB 3:
%output holomap='widgets'
ERROR: Line magic function %output not found.
Although everything looks and works fine now...

from holoviews.

philippjfr avatar philippjfr commented on September 28, 2024

We'll investigate why it takes so long, but we'll also try to upload frequent minor and bug fix releases to PyPI, so it can be downloaded quickly. The %output line was my fault, it should be moved to after the %load_ext holoviews.ipython line, pushed that fix to git.

from holoviews.

dartdog avatar dartdog commented on September 28, 2024

Awesome product, can't wait to use, thanks for the help.

from holoviews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.