Skip to content

Tag: python

Extract xml data with in cdata using Python

I have a requirement where I have extract XML with in CDATA with in XML. I am able to extract XML tags, but not XML tags in CDATA. I need to extract EventId = 122157660 (I am able to do, good with this). _Type=”Phone” _Value=”5152083348″ with in PAYLOAD/REQUEST_GROUP/REQUESTING_PARTY/C…

How to filter columns containing missing values

I am using the following code: to create a heatmap of missing values of the df. However since my df has a lot of columns, the chart has to be very tall in order to accommodate all the information. I tried altering the data argument to be something like this: data = df[df.columns.values.isna()].isna() or data …

Following links and crawling them

I was trying to make a crawler to follow links, with this code I was able to get the links but the part of entering the links and getting the information I need was not working, so a friend helped me to come up with this code It gets the json with the page items, but in loop number 230

Use list items as column seperators pd.read_fwf

I have text files containing tables which I want to put into a dataframe. Per file the column headers are the same, but the width is different depending on the content (because they contain names of different lengths for example). So far I managed to get the index of the first character of the header, so I kn…