Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: [split] Rearranging CSV columns and rows
Post: RE: [split] Rearranging CSV columns and rows

I managed to find how to sum the values for 'entityCommonStockSharesOutstanding'. I needed to convert the string to integers and then sum it up. Below is the code that worked: entityCommonStockShares...
Ivan1 General Coding Help 1 2,448 Aug-31-2017, 01:41 AM
    Thread: [split] Rearranging CSV columns and rows
Post: [split] Rearranging CSV columns and rows

Thank you so much - it worked! I followed your exact instructions and it worked perfectly. I now have both values for 'entityCommonStockSharesOutstanding' written in CSV instead of just one. Again tha...
Ivan1 General Coding Help 1 2,448 Aug-30-2017, 07:00 PM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: RE: How to change from printFacts ( ) to return a ...

Thank you very much. I updated the script with your code. I did receive the below error (which I think you were expecting to see as indicated in your earlier post) Error: Quote:Warning: An error occu...
Ivan1 General Coding Help 14 8,288 Aug-30-2017, 06:59 AM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: RE: How to change from printFacts ( ) to return a ...

So based on this i would assume if you make a list and append fact.effective_numeric_value or fact.normalized_value (based on whatever you want) then you would get all the values instead of the last o...
Ivan1 General Coding Help 14 8,288 Aug-30-2017, 12:00 AM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: RE: How to change from printFacts ( ) to return a ...

This is the feedback that I received from Altova's support team: "The instance may contain multiple values for a fact, the printFacts function returns the last one in such a case. If you want to wri...
Ivan1 General Coding Help 14 8,288 Aug-29-2017, 08:55 PM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: RE: How to change from printFacts ( ) to return a ...

Thank you so much for you help. I spent 5 hours yesterday trying to make it work but no luck. I have Altova set up and can run the code and share the results with you. They offer their product for fre...
Ivan1 General Coding Help 14 8,288 Aug-28-2017, 08:23 PM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: RE: How to change from printFacts ( ) to return a ...

I have made the code more simple. But when you run it, I still get same problem. On my mac terminal I get the two different values for Entity Common Stock Shares Outstanding, but I only get one (of th...
Ivan1 General Coding Help 14 8,288 Aug-28-2017, 02:22 AM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: RE: How to change from printFacts ( ) to return a ...

The code I posted is modified to extract, print and write to CSV additional data points that the orginal code did not cover (like for example: Entity Common Stock Shares Outstanding"). I have enclosed...
Ivan1 General Coding Help 14 8,288 Aug-27-2017, 12:18 PM
    Thread: How to change from printFacts ( ) to return a list & Loop over list when writing CSV
Post: How to change from printFacts ( ) to return a list...

I am new to Python and have modified below code to return various data points including below data point for each company. However, in cases where there are two values for the same data point, the cod...
Ivan1 General Coding Help 14 8,288 Aug-27-2017, 08:45 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020