-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.replit
2 lines (2 loc) · 1.26 KB
/
.replit
1
2
language = "python3"
run = "python -i -c \"import comma; import os; os.system('cls' if os.name == 'nt' else 'clear'); print('The comma package has been loaded.\nRead the documentation: https://comma.readthedocs.io/\n\nFor an example:\n\n >>> tab = get_comma_example()\n \n >>> tab[0] # <-- First row\n {\\'street\\': \\'3526 HIGH ST\\', \\'city\\': \\'SACRAMENTO\\', \\'zip\\': \\'95838\\', \\'state\\': \\'CA\\', \\'beds\\': \\'2\\', \\'baths\\': \\'1\\', \\'sq__ft\\': \\'836\\', \\'type\\': \\'Residential\\', \\'sale_date\\': \\'Wed May 21 00:00:00 EDT 2008\\', \\'price\\': \\'59222\\', \\'latitude\\': \\'38.631913\\', \\'longitude\\': \\'-121.434879\\'}\n \n >>> tab.header # <-- Header with column names\n [\\'street\\', \\'city\\', \\'zip\\', \\'state\\', \\'beds\\', \\'baths\\', \\'sq__ft\\', \\'type\\', \\'sale_date\\', \\'price\\', \\'latitude\\', \\'longitude\\']\n \n >>> list(tab[\\'city\\'][0:10]) # <-- First ten rows of the column \\'city\\'\n [\\'SACRAMENTO\\', \\'SACRAMENTO\\', \\'SACRAMENTO\\', \\'SACRAMENTO\\', \\'SACRAMENTO\\', \\'SACRAMENTO\\', \\'SACRAMENTO\\', \\'SACRAMENTO\\']\n\n\nGive it a try! :-)\n\n'); get_comma_example = lambda: comma.load('http://samplecsvs.s3.amazonaws.com/Sacramentorealestatetransactions.csv')\""