5 ms·
Show HN: Pandashells – Bringing the Python data stack to the shell prompt
- robdmc 11y agoPandashells 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.
- sciurus 11y agoSince 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 https://news.ycombinator.com/show
- robdmc 11y agoI'm a total HN noob. Don't see an option for editing the post. Am I just blind?
- danso 11y agoNo...after the first X minutes, the option to change the title is lost. Maybe a mod will change it though.
- Cogito 11y ago...and you can always send an email to the mods to ask them to do this - hn@ycombinator.com They tend to reply quickly and are very helpful, in my experience!
- eevilspock 11y agoA 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.
- jackmaney 11y ago> 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).
- mixmastamyk 11y agoTry 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]
- robdmc 11y agothanks mixmastamyk. That's a good suggestion.
- robdmc 11y agoThanks 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.
- jackmaney 11y agoWhy focus on TkAgg support? Just write graphics to a user-specified file.
- robdmc 11y agoA 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!! :)
- et2o 11y agoThis 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.
- afarrell 11y agoThis is great! Do you want to make a Conda package for this or shall I?
- robdmc 11y agoI 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.
- wakatana 11y agoThank 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)?
- robdmc 11y agoI'm not sure. I've never used PowerShell either.