나는 이것을 파악하려고 애 쓰고 있습니다. 나는 각각의 검토를 위해 다음 항목으로 팬더 DataFrame 객체를 생성해야합니다파이썬 텍스트 파일의 특정 데이터 읽기
- 제품 ID
- 이 리뷰가 도움이 투표 사람들의 수
- 평가이 리뷰를 평가 사람들의
- 총 수 제품의 검토
- 텍스트 사람도 그냥 날 모든 생산을 인쇄하는 방법에 시작할 수 있도록 도움을 드릴 수 있습니다
t/productID 라인, 그게 인정 될 것이다. 여기
내 텍스트 파일의 샘플입니다 : 내가 읽고 싶은 생각에 질문을 이해하면product/productId: B001E4KFG0
review/userId: A3SGXH7AUHU8GW
review/profileName: delmartian
review/helpfulness: 1/1
review/score: 5.0
review/time: 1303862400
review/summary: Good Quality Dog Food
review/text: I have bought several of the Vitality canned dog food products and have found them all to be of good quality. The product looks more like a stew than a processed meat and it smells better. My Labrador is finicky and she appreciates this product better than most.
product/productId: B00813GRG4
review/userId: A1D87F6ZCVE5NK
review/profileName: dll pa
review/helpfulness: 0/0
review/score: 1.0
review/time: 1346976000
review/summary: Not as Advertised
review/text: Product arrived labeled as Jumbo Salted Peanuts...the peanuts were actually small sized unsalted. Not sure if this was an error or if the vendor intended to represent the product as "Jumbo".
product/productId: B000LQOCH0
review/userId: ABXLMWJIXXAIN
review/profileName: Natalia Corres "Natalia Corres"
review/helpfulness: 1/1
review/score: 4.0
review/time: 1219017600
review/summary: "Delight" says it all
review/text: This is a confection that has been around a few centuries. It is a light, pillowy citrus gelatin with nuts - in this case Filberts. And it is cut into tiny squares and then liberally coated with powdered sugar. And it is a tiny mouthful of heaven. Not too chewy, and very flavorful. I highly recommend this yummy treat. If you are familiar with the story of C.S. Lewis' "The Lion, The Witch, and The Wardrobe" - this is the treat that seduces Edmund into selling out his Brother and Sisters to the Witch.
"투표 한 사람의 수"와 "투표 한 사람의 수"는 어느 필드입니까? – wwii