Új hozzászólás Aktív témák
-
0xmilan
addikt
válasz
alec.cs
#2320
üzenetére
timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds). If no timeout is specified explicitly, requests do not time out.
- https://2.python-requests.org/en/master/user/quickstart/A 0.5 eleg hasrautesszeru volt. Tenyleg lehet akar tobb masodperc is.
@sztanozs
Ja, a legtobb ilyen scanner script HEAD-et hasznal a sebesseg miatt. Azt meg bele lehetne irni, hogy ha a HEAD valasza nem 200, akkor kuldje ujra GET-tel. -
0xmilan
addikt
válasz
Siriusb
#1954
üzenetére
pandas drop_duplicates megoldassal:
Eloszor listabol pandas df: [link]labels = ['name', 'value', 'rowid']
df = pd.DataFrame.from_records(listad, columns=labels)
df.drop_duplicates(subset=['name','rowid'], keep='last', inplace=True)vagy valami hasonlo.
aztan df.tolist() vissza tudja elvileg rakni listaba, vagy to_csv() csv-be, vagy amibe szeretned.
Valoszinuleg van egyszerubb megoldas meg nagy az overheadje a lista > df konverzionak, de hirtelen ez jutott eszembe.
-
0xmilan
addikt
válasz
sztanozs
#1625
üzenetére
Az egyik lynda-s data science tutorialban a 'system python'-tol valo szeparacio volt az indok.
"I do not recommend using your system Python for development in this course, for the following reasons: one disadvantage of using the system Python for real development is that changes to the environment could potentially have an impact on the system for Mac and Linux users, Windows does not use Python for system tasks, and so is unaffected by this issue; another disadvantage is that making changes to the system Python usually requires root, super-user, or administrator level access, which is fine for user's personal desktop, but on shared systems and many corporate computers, it can become a hassle, even installing packages can be a real challenge if users do not have elevated privileges; for Windows users, a final disadvantage of using out-of-the-box Python, is that Windows users often lack compilers and other development tools."
Új hozzászólás Aktív témák
- Lítium-ion/Li-ion akkumulátorok
- Fejhallgató erősítő és DAC topik
- BestBuy topik
- AMD Ryzen 9 / 7 / 5 / 3 5***(X) "Zen 3" (AM4)
- OLED monitor topic
- Apple MacBook
- MWC 2026: Na, fussunk vele még egy kört!
- Audi, Cupra, Seat, Skoda, Volkswagen topik
- iPhone topik
- Mibe tegyem a megtakarításaimat?
- További aktív témák...
- 209 - Lenovo Yoga Pro 7 (14APH8) - AMD Ryzen 7 7840HS, no GPU
- Telefon felvásárlás!! iPhone 13 Mini/iPhone 13/iPhone 13 Pro/iPhone 13 Pro Max/
- ÁRGARANCIA!Épített KomPhone i5 12400F 16/32/64GB RAM RTX 3060 12GB GAMER PC termékbeszámítással
- Samsung Galaxy A56 5G 8/256GB fehér használt, karcmentes 6 hónap garancia
- HIBÁTLAN iPhone 11 128GB Black -1 ÉV GARANCIA - Kártyafüggetlen, MS4411, 100% Akksi
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
