Bt if I want select cols/filter rows/aggregate/ join tables - with Pandas syntax directly from DB (for it to work as DAL, not with another DAL syntax) ?
-- Jurgis Pralgauskis tel: 8-616 77613 2018-05-02, tr 22:22, Richard Vézina <ml.richard.vez...@gmail.com> rašė: > I am not sure I understand what you want... > > It a nice thing if Pandas use RAM it means that it use the fastest > component of you computer... It should make Pandas fast... > > I am not sure what would involve overloading operators to use pyDAL... > Pandas is used to transform data... If what you do on your dataframe has to > be apply to your data would be really risky on the persistence stand > point... > > To populate dataframe from web2py table : > > import pandas as pd > rows = db(db.auth_user.id > 0).select(db.auth_user.ALL).as_list() > df = pd.DataFrame(rows) > df.columns # Should be your fields names > > Richard > > On Tue, May 1, 2018 at 11:31 PM, Jurgis Pralgauskis < > jurgis.pralgaus...@gmail.com> wrote: > >> Hi, >> >> Pandas syntax seems very nice (short), and popular ... >> But Pandas eat RAM..., and well, most of data is in DB... >> >> so I wonder, how hard would it be to overload operators to use pyDAL (or >> other DAL/ORM)? >> >> what are the main challanges? >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/DIeQ5U-pr6Q/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.