Похожие чаты

Is it because of append method?

16 ответов

9 просмотров

No, when you iterate over a csvreader, each row is a list of strings, but when you iterate over a file, each row is just a string. Btw, the docs on csvreader says this.

CH- Автор вопроса
Link 🪈
No, when you iterate over a csvreader, each row is...

Thanks for your explanation! It helps! I will look into this

CH- Автор вопроса
Link 🪈
No, when you iterate over a csvreader, each row is...

yes... i have tried it out... when iterate over a csvreader, each row is a list of string, and each element is a string. but may i know why is it in a 2D list? is it because of my data contains a few columns?

CH
screenshot yes... i have tried it out... when iterate over a ...

Isn't this normal? A list of lists means you have a list where each item is a row and each row is a column

CH- Автор вопроса
Muflone
Isn't this normal? A list of lists means you have...

uhhh... I'm so confusing now... it shouldn't return just a 1D list instead?

CH
uhhh... I'm so confusing now... it shouldn't retur...

No, refer to: https://t.me/c/1111136772/164038

CH- Автор вопроса
Link 🪈
No, refer to: https://t.me/c/1111136772/164038

Ya referred… Iterate over a csvreader, it will return me nested list and each row of data is a string within a list…

CH- Автор вопроса
Link 🪈
No, refer to: https://t.me/c/1111136772/164038

but when i iterate over a file, it will just returns me a list and each row of the data is 1 string plus \n

CH- Автор вопроса
⟨ Simon | Schürrle ⟩
that's expected behaviour, what's the issue

Oh because I just want to clear my doubts… As my basic/foundation is not strong enough…

CH- Автор вопроса
⟨ Simon | Schürrle ⟩
and yes it's because of the columns

Thank you… So I would said that if the data have multiple columns, eventually the output would be a nested list if iterate over a csvreader method

CH- Автор вопроса
⟨ Simon | Schürrle ⟩
yes that's the point of using a CSV reader

Thank you for clearing my doubts… I need to ensure that my basic/foundation is strong enough, then only will proceed further

CH
uhhh... I'm so confusing now... it shouldn't retur...

No, there's a dimension for the rows and a dimension for the columns

CH- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта