Como você faria?
Há algumas formas de escrever isso, mas o django-extensions tem algo pronto.
$ ./manage.py show_urls
pronto.
sim, só isso!
=]
$ ./manage.py show_urls
find ./ -type f -newermt 2015-01-01 ! -newermt 2015-08-01 -delete

| import requests |
| import json |
| api_url = 'https://www.googleapis.com/urlshortener/v1/url' |
| api_key = 'AIzaSyD-wgUbjlaBOORxF0mrXzeNsOOafKrnw0U' |
| url = '{0}?key={1}'.format(api_url, api_key) |
headers = {'content-type': 'application/json'} |
| params = json.dumps({'longUrl': 'http://www.google.com'}) |
response = requests.post(url, data=params, headers=headers) |
if response.ok: |
| print (response.json()['id']) |
| else: |
| print (response.status_code, response.reason) |

import pandas as pd
dados = pd.read_csv('file.csv')
dados
| a | b | c | d | |
|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 |
| 1 | 5 | 6 | 7 | 8 |
dados.ix[:,1:3]
| b | c | |
|---|---|---|
| 0 | 2 | 3 |
| 1 | 6 | 7 |
dados[['b','d']]
| b | d | |
|---|---|---|
| 0 | 2 | 4 |
| 1 | 6 | 8 |
novo = dados[['b', 'd']]
novo['b']
0 2 1 6