+ 1
How to extract the element of 2nd column of 5th row from a CSV file in python or Linux? I need both.
2 Respostas
0
Python or Linux? You realise that one is a programming language and one is an operating system, right?
In python use the pandas module. You'll have to make use of:
read_csv
iloc
Take the Python for Data Science course if you don't know how to do it.
- 1
You can use csv module in PYTHON
or you can write your own. It is very easy. You just need to read CSV file and split it by (\n) and then split every element by comma (,)
Almost every Linux distribution has preinstalled PYTHON interpreter.
So you doesn't have to write for Linux separately using bash