Diysb Tools

CSV ट्रांसपोज़ करें

CSV डेटा को ट्रांसपोज़ करें (पंक्तियों को स्तंभों में बदलें)।

CSV टूल्स

What is a CSV ट्रांसपोज़ करें?

यह टूल कॉमा सेपरेटेड वैल्यूज़ (CSV) को ट्रांसपोज़ करता है। यह CSV को डेटा के एक मैट्रिक्स की तरह मानता है और सभी तत्वों को मुख्य विकर्ण पर पलट देता है। आउटपुट में इनपुट के समान ही CSV डेटा होता है, लेकिन अब सभी पंक्तियाँ कॉलम में बदल गई हैं, और सभी कॉलम पंक्तियाँ में बदल गए हैं। ट्रांसपोज़िशन के बाद, CSV फ़ाइल के आयाम विपरीत होंगे। उदाहरण के लिए, यदि इनपुट फ़ाइल में 4 कॉलम और 3 पंक्तियाँ हैं, तो आउटपुट फ़ाइल में 3 कॉलम और 4 पंक्तियाँ होंगी। रूपांतरण के दौरान, प्रोग्राम अनावश्यक पंक्तियों से डेटा भी साफ़ करता है और अधूरे डेटा को सही करता है। विशेष रूप से, यह टूल किसी विशिष्ट वर्ण से शुरू होने वाले सभी रिक्त रिकॉर्ड और टिप्पणियों को स्वचालित रूप से हटा देता है, जिसे आप विकल्प में सेट कर सकते हैं। इसके अतिरिक्त, ऐसे मामलों में जहाँ CSV डेटा दूषित या खो गया है, उपयोगिता फ़ाइल को रिक्त फ़ील्ड या कस्टम फ़ील्ड से भर देती है जिन्हें विकल्पों में निर्दिष्ट किया जा सकता है। Csv-abulous!

Input CSV
Transposed CSV
टूल विकल्प
CSV input Options
Enter the character used to delimit columns in the CSV input file.
Enter the quote character used to quote the CSV input fields.
Enter the character indicating the start of a comment line.
Fixing CSV Options

Insert empty fields or custom values where the CSV data is missing.

CSV ट्रांसपोज़ करें उदाहरण

Transpose a 2x3 CSV

This example transposes a CSV with 2 rows and 3 columns. The tool splits the input data by the comma character, creating a 2 by 3 matrix. It then exchanges elements, turning columns into rows and vice versa. The output is a transposed CSV with flipped dimensions

foo,bar,baz val1,val2,val3
foo,bar,baz val1,val2,val3
foo,val1 bar,val2 baz,val3
foo,val1 bar,val2 baz,val3
CSV input Options
Enter the character used to delimit columns in the CSV input file.
Enter the quote character used to quote the CSV input fields.
Enter the character indicating the start of a comment line.
Fixing CSV Options

Insert empty fields or custom values where the CSV data is missing.

Transpose a Long CSV

In this example, we flip a vertical single-column CSV file containing a list of our favorite fruits and their emojis. This single column is transformed into a single-row CSV file and the rows length matches the height of the original CSV.

Tasty Fruit 🍑 peaches 🍒 cherries 🥝 kiwis 🍓 strawberries 🍎 apples 🍐 pears 🥭 mangos 🍍 pineapples 🍌 bananas 🍊 tangerines 🍉 watermelons 🍇 grapes
Tasty Fruit 🍑 peaches 🍒 cherries 🥝 kiwis 🍓 strawberries 🍎 apples 🍐 pears 🥭 mangos 🍍 pineapples 🍌 bananas 🍊 tangerines 🍉 watermelons 🍇 grapes
fTasty Fruit,🍑 peaches,🍒 cherries,🥝 kiwis,🍓 strawberries,🍎 apples,🍐 pears,🥭 mangos,🍍 pineapples,🍌 bananas,🍊 tangerines,🍉 watermelons,🍇 grapes
fTasty Fruit,🍑 peaches,🍒 cherries,🥝 kiwis,🍓 strawberries,🍎 apples,🍐 pears,🥭 mangos,🍍 pineapples,🍌 bananas,🍊 tangerines,🍉 watermelons,🍇 grapes
CSV input Options
Enter the character used to delimit columns in the CSV input file.
Enter the quote character used to quote the CSV input fields.
Enter the character indicating the start of a comment line.
Fixing CSV Options

Insert empty fields or custom values where the CSV data is missing.

Clean and Transpose CSV Data

In this example, we perform three tasks simultaneously: transpose a CSV file, remove comments and empty lines, and fix missing data. The transposition operation is the same as flipping a matrix across its diagonal and it is done automatically by the program. Additionally, the program automatically removes all empty lines as they cannot be transposed. The comments are removed by specifying the "#" symbol in the options. The program also fixes missing data using a custom bullet symbol "•", which is specified in the options.

Fish Type,Color,Habitat Goldfish,Gold,Freshwater #Clownfish,Orange,Coral Reefs Tuna,Silver,Saltwater Shark,Grey,Saltwater Salmon,Silver
Fish Type,Color,Habitat Goldfish,Gold,Freshwater #Clownfish,Orange,Coral Reefs Tuna,Silver,Saltwater Shark,Grey,Saltwater Salmon,Silver
Fish Type,Goldfish,Tuna,Shark,Salmon Color,Gold,Silver,Grey,Silver Habitat,Freshwater,Saltwater,Saltwater,•
Fish Type,Goldfish,Tuna,Shark,Salmon Color,Gold,Silver,Grey,Silver Habitat,Freshwater,Saltwater,Saltwater,•
CSV input Options
Enter the character used to delimit columns in the CSV input file.
Enter the quote character used to quote the CSV input fields.
Enter the character indicating the start of a comment line.
Fixing CSV Options

Insert empty fields or custom values where the CSV data is missing.

Enter the character used to fill missing values.