Re: double bracket integer index in pandas; Is this a legal syntax

2023-05-03 Thread Artie Ziff
I agree with your analysis, Cameron. The code came from a video course, "Pandas Data Analysis with Python Fundamentals" by Daniel Chen. I am curious why the author may have said this. To avoid attaching screenshots, I'll describe this section of the content. Perhaps someone can say, "oh that's ho

double bracket integer index in pandas; Is this a legal syntax

2023-05-03 Thread Artie Ziff
Hello, I am hope that pandas questions are OK here. In a panda lecture, I did not get the expected result. I tried this on two different platforms (old macOS distro and up-to-date Ubuntu Linux distro, 22.04) The Linux distro has: python3.10.11 pandas1.5.2

Re: how to handle response data that is streaming and chunked?

2019-03-22 Thread Artie Ziff
> > > What do you mean by "response library"? > So sorry for the vocabulary mislead. I intended to write "requests" referring to the http networking lib with the bazillion downloads. ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: how to handle response data that is streaming and chunked?

2019-03-21 Thread Artie Ziff
Some more info I wanted to add this relevant stack overflow post: https://stackoverflow.com/questions/17822342/understanding-python-http-streaming The code splitting on text produces the following sample output: {"status":"connected"}{"quote":{"ask":"195.95","asksz":"1000","bid":"195.93","bi

how to handle response data that is streaming and chunked?

2019-03-21 Thread Artie Ziff
Hello, I am trying to learn how to do use response library in the least confusing way possible. My data source is streaming. The sample I share below looks more complicated that it needs to be. I do not have enough experience with this to know better. Hence why I came here for guidance and direct

Re: xml data or other?

2012-11-18 Thread Artie Ziff
On 11/9/12 5:50 AM, rusi wrote: On Nov 9, 5:54 pm, Artie Ziff wrote: # submit correctedinput to etree I was very grateful to get the "leg up" on getting started down that right path with my coding. Many thanks to you, rusi. I took your excellent advices and have this workin

xml data or other?

2012-11-09 Thread Artie Ziff
Hello, I want to process XML-like data like this: ACPI (Advanced Control Power & Integration) testscript for 2.5 kernels. <\description> ltp/testcases/kernel/device-drivers/acpi/ltpacpi.sh <\test_location> <\testname> After m

string to unicode

2011-08-15 Thread Artie Ziff
if I am using the standard csv library to read contents of a csv file which contains Unicode strings (short example: '\xe8\x9f\x92\xe8\x9b\x87'), how do I use a python Unicode method such as decode or encode to transform this string type into a python unicode type? Must I know the encoding (byt