简体   繁体   中英

Using pandas how to sperate column from one column specific row from csv file

my csv file like

ABD EB AC 1 EF 2 MT 3

BM AC 1 EF 2

I want like A MT EB 3 BM NULL

import pandas as pd

df = pd.read_csv(my_csv_path)
df = df[[my_list_of_column]]

it can be an easy way for your problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM