all AI news
Is there a way to ask pandas to read all columns of a csv except for one?
Web: https://www.reddit.com/r/datascience/comments/seomv7/is_there_a_way_to_ask_pandas_to_read_all_columns/
Jan. 28, 2022, 11:24 a.m. | /u/porcos3
Data Science reddit.com
Or a couple of columns. I was thinking something like pd.read_csv('data.csv',usecols=[1:]), but that doesn't work. Don't see it in the documentation but maybe there is a workaround.
Or maybe something that would work like pd.read_csv('data.csv',skipcols=['col1','col20']), reads all columns but those.
submitted by /u/porcos3[link] [comments]
More from reddit.com / Data Science
Latest AI/ML/Big Data Jobs
Engineering Manager, Machine Learning (Credit Engineering)
@ Affirm | Remote Poland
Sr Data Engineer
@ Rappi | [CO] Bogotá
Senior Analytics Engineer
@ GetGround | Porto
Senior Staff Software Engineer, Data Engineering
@ Galileo, Inc. | New York City or Remote
Data Engineer
@ Atlassian | Bengaluru, India
Data Engineer | Hybrid (Pune)
@ Velotio | Pune, Maharashtra, India