![]() ![]() ![]() During the Winter War, the Finnish C.Vs flew 151 reconnaissance and harassment bombing sorties without suffering any losses. The aircraft were used as reconnaissance and light bomber aircraft between 20 September 1927 and 14 February 1945. These were interned and turned over to the FAF. Two C.V-Ds were also flown from Norway to Finland at the closing stages of the Norwegian Campaign. During the Winter War, Sweden donated three more C.V-Es. One C.V-E was purchased in 1927, with delivery 20 September, and a further 13 were purchased on 17 March 1934, arriving in the winter of 1935. The Finnish Air Force used both C.V-Ds and C.V-Es. Sweden purchased two different versions to use as models for their license manufacturing of the reconnaissance version S 6 and a fighter version J 3. The aircraft became an export success for Fokker, it was sold and/or license manufactured in Bolivia, China, Denmark, Finland, Hungary, Italy, Japan, the Netherlands, Norway, Switzerland, the Soviet Union and the US. The landing gear could be changed from wheels to pontoons. The radial engines could give between 336–723 kW (451–970 hp). When shown to the public in 1924 was manufactured in a variety of versions the customer could choose from five different wing constructions (which varied in wing span). The aircraft was intended as a two-seat reconnaissance and bomber aircraft. W = csv.writer(f,quotechar='"', delimiter= ",")Ĭheck result: with open ("done.The C.V was constructed in the early 1920s by Anthony Fokker. With open ("done.csv", "w", newline="") as f: Result.append(replace] + row) # replace data Replace = ĭelete = set( (row for row in read_file("d.csv")) ) If row: # eliminate empty rows from data read Reader = csv.reader(f, quotechar='"',delimiter=",") ![]() I changed your data a bit to incorperate the mentioned "escaped" data including newlines:įile creation: with open("i.csv","w") as f: Loop over your data and use the both lookups to "do the right thing". ![]() if your data-row start with it: skip row else add it to the output.read the things you want to delete into a set.set key to what is in your datas 0th spot, set value as what to replace the 0th and 1st spot of your data with.read the things you want to replace in a dictionary.So right now i am facing the following problems:ġ)lines that are not present in either replace.csv or delete.csv dont get printedĢ)there is a possibility that my input.csv may contain newlines within one entry so reading line by line is a problem,however it is a certainty that the data distributed on the different lines is between quotes.Īny help in bringing the code and my logic together is appreciated. My logic is: 1)open input.csv read line by lineģ)compare first element with entire delete.csvĤ)if found in delete.csv then do nothing and take next line in arrayĥ)if not found in delete.csv then compare with replace.csvĦ)if the first element is found in the first column of replace.csv then replace the element by the corresponding second column of replace.csv and the second element with the corresponding 3rd third column of repalce.csv.ħ)load this array into a bigger 10 element array. Input.csv: aaaaaaaa,bbbbbb,cccccc,ddddddd I am writing a python code to search,delete and replace columns in a csv file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |