3 ms·
I'm not a Pandas person - is it possible to install the Pandas timestamp functionality as a smaller library, or do you need to install the whole shebang?
by robertlagrant 4y ago
I'm not a Pandas person - is it possible to install the Pandas timestamp functionality as a smaller library, or do you need to install the whole shebang?
- iknownothow 4y agoI had investigated if this was possible to do but I couldn't find a way to do it myself. It's possible that pd.Timestamp might be intricately tied interally to vectorization optimizations using numpy or others. Therefore separating out just the timestamp stuff from pandas would be a lot of work.
- dagw 4y agoPython is in many ways the anti-JavaScript when it comes to packaging. Where JavaScript will have a installable package that contains a single trivial function, Python packages will bundle hundreds of functions, all vaguely related to an area, with no easy way of just installing what you actually need.
- noitpmeder 4y agoMy experience has been exactly the opposite, with two exceptions: pandas and numpy. Generally every other library works in terms of standard python types where possible. Very few other places will you see things like a re-implementation of a time library.
- dagw 4y agowith two exceptions ...and scipy and all the scikit libraries and whole bunch of others. 'Accidentally' pulling in hundreds of MBs of libraries you never use for a 100 line data processing script is par for the course in python land.
- nerdponx 4y agoMy experience is that Pendulum does a good job of handling date/time data as a drop-in replacement for the standard library classes.