News for hackers. Stuff that matters.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Sunday August 02, 2015 @01:36PM (#9991491)
Pandashells is a set of cli tools that opens up the power of the python data stack to the bash prompt. Brings dataframe manipulation, visualization and statistical modeling to the unix pipeline workflow.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by sciurus on Sunday August 02, 2015 @04:06PM (#9992204)
Since you created this tool, you can put "Show HN:" at the beginning of your submission's title. That will make it show up on https://news.ycombinator.com/show
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Sunday August 02, 2015 @05:24PM (#9992535)
I'm a total HN noob. Don't see an option for editing the post. Am I just blind?
Re:Show HN: Pandashells – Bringing the Python data stack to ... by eevilspock on Sunday August 02, 2015 @09:52PM (#9993286)
A lot of people will miss this since it's posted on a weekend. If this doesn't make the Monday morning HN front page, I recommend waiting a week or so and reposting as a Show HN some weekday morning.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by danso on Sunday August 02, 2015 @09:00PM (#9993178)
No...after the first X minutes, the option to change the title is lost. Maybe a mod will change it though.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by Cogito on Sunday August 02, 2015 @09:36PM (#9993254)
...and you can always send an email to the mods to ask them to do this - [email protected]

They tend to reply quickly and are very helpful, in my experience!

Re:Show HN: Pandashells – Bringing the Python data stack to ... by jackmaney on Sunday August 02, 2015 @04:05PM (#9992196)
> There is no requirements file with pandashells because some of the tools only require the standard library, and there's no sense installing unnecessary packages if you only want to use that subset of tools.

This is a terrible idea. One of the main features of package managers is dependency management. If you want to be as minimalistic as possible, separate the tools into further packages (some of which have their requirements laid out properly, and some of which only require the standard library).

Re:Show HN: Pandashells – Bringing the Python data stack to ... by mixmastamyk on Sunday August 02, 2015 @05:16PM (#9992507)
Try the extra capabilities parameters in setup.py, so the user can selectively install what they'd like:

    extras_require = {
         'param_name': ['pkg1', 'pkg2'],
     },

They then can be used like so:

    pip install package[param_name]
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Sunday August 02, 2015 @05:21PM (#9992525)
thanks mixmastamyk. That's a good suggestion.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Sunday August 02, 2015 @05:20PM (#9992520)
Thanks for the feedback. As you may know, getting matplotlib to work properly with backends like TkAgg can be quite a chore when installing using pip (non-python libraries are needed). The Pandashells install process could be improved. I intend on creating a conda package for Pandashells that should handle the dependency issue you raise, but I just haven't had time to do so yet. I am hoping the detailed examples in the docs will suffice until I do.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by jackmaney on Sunday August 02, 2015 @09:45PM (#9993263)
Why focus on TkAgg support? Just write graphics to a user-specified file.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Sunday August 02, 2015 @10:04PM (#9993321)
A native-ish backend like TkAgg is valuable because it instantly pops up an interactive plot, which I find really useful for the quick-n-dirty data exploration tasks I usually use Pandashells for. You don't need the interactive backend and can use the --savefig option on plots to save images or html, but that takes time -- and I usually want my results now!! :)
Re:Show HN: Pandashells – Bringing the Python data stack to ... by jackmaney on Monday August 03, 2015 @01:16AM (#9993959)
It should be possible to pipe to file and then fire off a subprocess to open the resulting png.

In Windows, you can do:

    os.system("start {}".format(output_file_name))
to open the output file with the default Windows program to view that file type (although if there is no registered program to open files of that extension, you'll get the usual prompt asking you what program you want to use to open the file.

Similarly, you can use `open` in OS X and `gnome-open` in at least some flavors of Linux (including Ubuntu).

Of course, you could always allow this command to be user configurable, with the defaults above depending on the OS in which the code is running.

Re:Show HN: Pandashells – Bringing the Python data stack to ... by et2o on Sunday August 02, 2015 @06:47PM (#9992799)
This looks amazing! The amount of time I spend writing short python scripts to manipulate data in simple ways is way too big, and this looks like it might fit my needs precisely. Thank you for creating this.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by afarrell on Sunday August 02, 2015 @09:55PM (#9993297)
This is great! Do you want to make a Conda package for this or shall I?
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Sunday August 02, 2015 @09:59PM (#9993310)
I would love help making a conda package. I've never done that before. I didn't spend a lot of time looking, but I didn't find conda packages for some of the dependencies (e.g. gatspy). If you now how to work around that, I'd welcome the help.
Re:Show HN: Pandashells – Bringing the Python data stack to ... by wakatana on Monday August 03, 2015 @07:51AM (#9995071)
Thank you very much for your work. One question: I've never used PowerShell cause I'm UNIX user but isn't PowerShell capable of doing something similar (piping the objects)?
Re:Show HN: Pandashells – Bringing the Python data stack to ... by robdmc on Monday August 03, 2015 @09:01AM (#9995398)
I'm not sure. I've never used PowerShell either.