Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to read first column of csv intro a list python

with open("mylist.csv") as f:
    list2 = [row.split()[0] for row in f]
Comment

PREVIOUS NEXT
Code Example
Python :: odoo sorted 
Python :: python generator expression 
Python :: python index of lowest value in list 
Python :: python built in functions 
Python :: get coordinates in xarray 
Python :: beautifulsoup 
Python :: how to add reaction by message id in discord.py 
Python :: python append to list 
Python :: python colored text into terminal 
Python :: plt python two axis 
Python :: python print same line 
Python :: django redirect 
Python :: python mann kendall test 
Python :: cannot reshape array of size 2137674 into shape (1024,512,3,3) 
Python :: numpy random 
Python :: chi square test contingency table python 
Python :: urllib.error.HTTPError: HTTP Error 404: Not Found 
Python :: pytube python 
Python :: python merge strings 
Python :: convert string to number python 
Python :: how to make a key logger 
Python :: django form field class 
Python :: interface, abstract python? 
Python :: split by backslash python 
Python :: replace nan 
Python :: get column or row of matrix array numpy python 
Python :: create requirements file and load it in new envirnment. 
Python :: producer and consumer problem in python 
Python :: matplotlib pie chart order 
Python :: datetime print the current time 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =