Something like: import os import pandas as pd data = pd.read_csv(open(os.path.join(request.folder, 'static', 'path/to/data.csv'), 'r'))
Anthony On Monday, April 7, 2014 4:49:19 PM UTC-4, ArtDijk wrote: > I want to do some pandas analysis on a csv. I've manually put the file in > the '/static' folder. > Later I want to show a plot based on the analysis. > What should be the correct syntax to load the csv file in the default.py ? > Thanks > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

