sample_data=data.text[50]
data is the name of dataframe.
text is column name.
My ques is [50] will take first 50 characters from each row of text column?
it gets 50th row value from text column.To get 1st 50 characters use data.text.str[:50]
--- @Ch3steR
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.