What you wrote seems interesting but i haven't understood.
Can you explain in simple words considering i'm italian and i'm not
understanding so well some terms you use.
Sorry, i'm sure you are suggesting something really valid but can't
understand it.
Marco.
--
http://mail.python.org/mailman/li
On 02/28/2013 05:05 PM, io wrote:
Just use a tolower() method on both strings when you're comparing them.
Of course, that may not work well with international character sets.
Some characters in some languages have no lowercase equivalent, and
using toupper() has the same problem in other lan
> Just use a tolower() method on both strings when you're comparing them.
> Of course, that may not work well with international character sets.
> Some characters in some languages have no lowercase equivalent, and
> using toupper() has the same problem in other languages.
>
> Also, the approac
On 02/28/2013 03:46 PM, io wrote:
Neil, it works great!
Just one question : what can i do for ignoring the case sensitive of the
symbol?
It wasn't working initially, then i wrote the values respecting case
sensitive in the file esclusioni and all worked as a charm. I would just
like to know if
The final working code is :
import json
import urllib
import csv
url = "http://bitcoincharts.com/t/markets.json";
response = urllib.urlopen(url);
data = json.loads(response.read())
f = open("/home/io/markets.csv","wb")
c = csv.writer(f)
#apre un file di testo e legge il contenuto del file inser
Neil, it works great!
Just one question : what can i do for ignoring the case sensitive of the
symbol?
It wasn't working initially, then i wrote the values respecting case
sensitive in the file esclusioni and all worked as a charm. I would just
like to know if i could ignore the case senstive
> Iterate over the file instead of looping manually.
>
> for line in esclusioni_file:
> esclusioni.append(line.strip())
> print(esclusioni)
the print was only to see if it was reading correct data but iìm not
needing to see it.
> Why are you checking d["symbol"] instead of d["currency
On 2013-02-28, io wrote:
> I'm a noob in python but my code looks like this :
>
>
> import json
> import urllib
> import csv
I take back what I said about the csv module. It appears you need
access to at least one of the data fields, so this is a good use
of csv.
> url = "http://bitcoincharts.co
I'm a noob in python but my code looks like this :
import json
import urllib
import csv
url = "http://bitcoincharts.com/t/markets.json";
response = urllib.urlopen(url);
data = json.loads(response.read())
f = open("/home/io/markets.csv","wb")
c = csv.writer(f)
#apre un file di testo e legge il
On 02/28/2013 02:14 PM, io wrote:
Hi,
i have to files.
First file is a csv file
Second file is a plain text file where each row has a value (text)
I want to be able to create a third file using data from the first file
excluding the values listed in the second file.
Example:
First file:
On 2013-02-28, io wrote:
> Hi,
>
> i have to files.
>
> First file is a csv file
> Second file is a plain text file where each row has a value (text)
>
> I want to be able to create a third file using data from the first file
> excluding the values listed in the second file.
>
> Example:
>
> Fir
On Thu, Feb 28, 2013 at 2:14 PM, io wrote:
> Hi,
>
> i have to files.
>
> First file is a csv file
> Second file is a plain text file where each row has a value (text)
>
Read the second file so that you have a list of each of its values
Read the first file line by line. Check if the value at t
Hi,
i have to files.
First file is a csv file
Second file is a plain text file where each row has a value (text)
I want to be able to create a third file using data from the first file
excluding the values listed in the second file.
Example:
First file:
---
mtgoxeur12 2
13 matches
Mail list logo