Question: Write a Python program that sorts the numbers in each column o

37 0

Get full Expert solution in seconds

$1.97 ONLY

Unlock Answer

Write a Python program that sorts the numbers in each column of a given input table (table e, g, csv). An example is shown bellow: Input: A 1 3 10 2 1 1 3 2 10 B 13 1 2 2 21 20 3 5 0 с 5 6 7 8 0 1 3 2 Output: B 2 А 10 10 3 3 2 2 1 1 1 с 7 2 6 3 8 3 1 5 2 21 20 13 5 1 0 Apply your Program to the file “Car_sales3.csv” provided.
Manufacturer Model Engine_size Horsepower Fuel efficiency Acura Integra 1.8 140 28 Acura TL 3.2 225 25 Acura RL 3.5 210 22 Audi A4 1.8 150 27 Audi A6 2.8 200 22 Audi AS 4.2 310 21 BMW 3281 2.8 193 24 BMW 528 28 193 Buick Century 3.1 175 25 Buick Regal 3.8 240 23 Buick Park Avenue 3.8 205 Buick LeSabre 3.8 205 25 Cadillac DeVille 4.6 275 19% NNNNN Cadillac Seville 4.6 275 Cadillac Eldorado 1.6 275 Cadillac Catera 3 200 Cadillac Escalade 5.7 255 Chevrolet Cavalier 2.2 115 Chevrolet Malibu 3.1 170 25 Chevrolet Lumina 3.1 175 25 Chevrolet Monte Carlo 3.4 180 27 Chevrolet Camaro 3.8 200 25 Chevrolet Corvette 5.7 345 22 Chevrolet Prizm 1.8 120 33 Metro 1 55 180 Chevrolet Chevrolet Chrysler Chrysler Impala Sebring Coupe Sebring Con. 2.5 163 24 2.5 168 24 Chrysler Concorde 2.7 200 26 Chrysler Cirrus 2 132 27 Chrysler LHS 3.5 253 23 Chrysler 300M 3.5 253 23 Dodge Neon 2 132 29 Avenger 2.5 163 24 Dodge Dodge Stratus 2.5 168 24
Dodge Intrepid 2.7 202 24 Dodge Viper 8 450 16 Dodge Ram Pickup 5.2 230 17 Dodge Ram Wagon 3.9 175 15 Dodge Ram Van 3.9 175 16 Dodge Dakota 2.5 120 19 Dodge Caravan 2.4 150 24 Ford Escort 2 110 30 Ford Mustang 190 24 Ford Contour 2.5 170 25 Ford Taurus 3 155 24 Ford Crown Victoria 4.6 200 21 Ford Explorer 210 19 Ford Windstar 3 150 21 Ford Expedition 4.6 240 16 Ford Ranger 2.5 119 23 Ford F-Series 4.6 220 18 Honda Civic 1.6 106 32 Honda Accord 2.3 135 27 Honda CR-V 2 146 24 Honda Passport 3.2 205 19 Honda Odyssey 3.5 210 23 Hyundai Accent 1.5 92 31 Hyundai Elantra 2 140 27 Hyundai Sonata 2.4 148 25 Infiniti 130 3 227 25 Jeep Wrangler 2.5 120 17 Jeep Cherokee 4 190 20 Jeep Grand Cherokee 4 195 19 Lexus ES300 3 210 23 Lexus GS300 3 225 23 Lexus GS400 4 300 21 Lexus LS400 4 290 22 Uncoln Continental 4.6 275 22 Lincoln Town car 4.6 215 21
Lincoln Navigator 5.4 300 15 1.8 113 30 Mitsubishi Mitsubishi Mitsubishi Mirage Eclipse 2.4 154 24 Galant 2.4 145 25 Mitsubishi Diamante 3.5 210 22 Mitsubishi 3000GT 161 21 Mitsubishi Montero 3.5 200 18 3 173 20 Mitsubishi Mercury Montero Sport Mystique 2 125 28 Mercury Cougar 2 125 30 Mercury 153 24 Mercury Sable Grand Marquis Mountaineer 4.6 200 21 4 210 18 Mercury Mercury Villager 3.3 170 21 C-Class 2.3 185 26 3.2 221 25 Mercedes-B Mercedes-B Mercedes-B Mercedes-B Nissan E-Class S-Class 4.3 275 21 SL-Class 5 302 20 Sentra 1.8 126 30 Nissan Altima 2.4 155 25 Nissan Maxima 3 222 25 Nissan Quest 3.3 170 21 Pathfinder 3.3 170 19 Nissan Oldsmobile Cutlass 3.1 150 25 Oldsmobile Aurora 4 250 22 Oldsmobile Bravada 4.3 190 19 Oldsmobile Silhouette 3.4 185 22 Plymouth Neon 2 132 29 Plymouth Breeze 2 132 27 Plymouth 2.4 150 24 Voyager Sunfire Pontiac 2.4 150 27 Pontiac Grand Am 3.4 175 25 Pontiac Firebird 3.8 200 25 Pontiac Grand Prix 3.8 195 25 Pontiac Bonneville 3.8 205 24 Porsche Boxter 2.7 217 22
Porsche Carrera Coupe 3.4 300 21 Porsche Carrera Cabrio 3.4 300 23 Saturn SL 1.9 100 33 Saturn SC 1.9 100 33 Saturn SW 1.9 124 31 Toyota Corolla 1.8 120 33 Toyota Camry 2.2 133 27 Toyota Avalon 3 3 210 26 Toyota Celica 1.8 140 31 Toyota Tacoma 2.4 142 23 Toyota RAV4 2 2 127 27 Toyota 4Runner 2.7 150 23 Toyota 4.7 230 15 Land Cruiser Golf Volkswagen N 115 26 Volkswagen Jetta N 115 26 Volkswagen Passat 1.8 150 27 Volkswagen Cabrio 2 115 26 Volkswagen GTI 2 115 26

EXPERT ANSWER