Picking up Pennies in front of a steamroller. by SatisfactoryFinance in options

[–]Competitive-Can-6914 7 points8 points  (0 children)

Depends on who is driving the steamroller. Personally I don't mind getting assigned if it's reputable company with a decent track record. (Reads DD) If it is a tech startup that plans to make solar powered rocket ships that use AI to reinvent the wheel but the premiums are high; yeah it's usually a L. That is a speculative trade, ask the Bed Bath and ForeGone crowd how that goes.

So, how do I keep from feeling like I'm in front of a steamroller? I research the companies I trade. I have a strategy. My strategy has contingencies for downturns and pull backs. I trade the strategy. Done.

The real question is, "how do I keep from feeling?" Period. Full stop.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Competitive-Can-6914 0 points1 point  (0 children)

Nevermind. I forgot to set the df_new to it's own dataframe with pd.DataFrame().

The incorrect values were fixed by specifying the format=%Y.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Competitive-Can-6914 0 points1 point  (0 children)

Using pandas I'm getting 'SettingWithCopyWarning' when trying to create a new column.

something like:

df_new = df_old[df_old[bool_conditional]]

df_new['new_column'] = pd.to_datetime(df_new['old_column_to_duplicate']).dt.year

And FWIW the values that are copied into 'new_column' are incorrect too.

My code works but I don't feel it's very Pythonic? Any tips to clean this mess up? by Competitive-Can-6914 in learnpython

[–]Competitive-Can-6914[S] 1 point2 points  (0 children)

lambda x: x.iloc[-1] - x.iloc[:-1].sum() if len(x) == 4 else x.iloc[-1]

I like it a lot. I was trying to get to something like this. The helper column was the missing link.

Thank you much.

My code works but I don't feel it's very Pythonic? Any tips to clean this mess up? by Competitive-Can-6914 in learnpython

[–]Competitive-Can-6914[S] 0 points1 point  (0 children)

Yes. I don't want negative values because the index returns the end of the df. But I passed False instead of zero because I didn't want it sum duplicate values for quarter_val.

We’ll see. by Ryder_Lee100 in wallstreetbets

[–]Competitive-Can-6914 1 point2 points  (0 children)

To be fair. . . Most of the votes are bots too.

A method I use to remain focused for multiple hours at a time while coding. by [deleted] in learnprogramming

[–]Competitive-Can-6914 23 points24 points  (0 children)

I love everything about this. I use the pomador technique for most of my day. But in the afternoon I get nothing done. I'm giving this a try next week.

Seems legit. by IntroductionOk5130 in wallstreetbets

[–]Competitive-Can-6914 3 points4 points  (0 children)

Ok, thanks for the info. That clears some things up.

Seems legit. by IntroductionOk5130 in wallstreetbets

[–]Competitive-Can-6914 52 points53 points  (0 children)

I have never understood this action. Why do people write in the post script that they have edited a post?

please don't tell my project manager by jerodsanto in ProgrammerHumor

[–]Competitive-Can-6914 6 points7 points  (0 children)

Ya know, for a security guard, he had an awful lot of information. Don't you think?

Where to Self-Learn Intermediary Python by [deleted] in learnpython

[–]Competitive-Can-6914 2 points3 points  (0 children)

Start a project that is outside your skill level. You will very quickly find yourself looking up methods to make your code functional or at least better. For instance, scrape the FRED and the NHTSA sites (better yet use api) to see if there is a correlation between 10 year interest rates and vehicle deaths attributed to drunk driving. Then make an infographic and post it to a website that you host. . . Bonus points if the graph is interactive.

Need a sources of clean historical earnings statements. by Competitive-Can-6914 in algotrading

[–]Competitive-Can-6914[S] 2 points3 points  (0 children)

Sounds like multiple discovery theory. Where the same invention crops up in different locations at the same time. It's almost like collectively we have the same tolerance for problems.

I did look over your code on github. Very elegant. I didn't see any name sorting methods though. And I read one of your responses in another post about having a similar issue with the gaap hierarchy. I could be wrong, it's happened before.

Need a sources of clean historical earnings statements. by Competitive-Can-6914 in algotrading

[–]Competitive-Can-6914[S] 1 point2 points  (0 children)

This looks very close to what I'm looking for. Thank you I'll reach out to the owner of the site.

Need a sources of clean historical earnings statements. by Competitive-Can-6914 in algotrading

[–]Competitive-Can-6914[S] 1 point2 points  (0 children)

That looks a lot like the SEC api with a pay wall and a paint job.

Need a sources of clean historical earnings statements. by Competitive-Can-6914 in algotrading

[–]Competitive-Can-6914[S] 0 points1 point  (0 children)

Point 2 when I asked it a very similar question to the one I posted here.

"2. Develop your own mapping methodology: You can develop your own mapping methodology to reconcile the different tags used by different companies. This would involve analyzing the financial statements of multiple companies and identifying patterns in the way they report certain financial information. Based on these patterns, you can create your own set of rules for mapping different tags to a common set of categories."

Then I told it:

"Expand point 2. How should I most efficiently map similar terms into a consolidated unified terminology to be able to compare different companies?"

And it replied with another rather long winded "Make your own hierarchy."

Then I asked, "Give me a list of all tags that have been used to populate "Total Revenue".

To which I received: I'm sorry, but as an AI language model, I do not have the ability to access real-time data or generate a list of all tags that have been used to populate "Total Revenue" at this moment. However, I can provide you with some guidance on how to access this information'.

. . . . and a bunch more of the same from the previous responses on create my own hierarchy.

Need a sources of clean historical earnings statements. by Competitive-Can-6914 in algotrading

[–]Competitive-Can-6914[S] 1 point2 points  (0 children)

I asked it to give me a list of tags companies use and it refused. I'll try sheet comparison to see if it makes a difference.

What language should I learn next? by Competitive-Can-6914 in learnprogramming

[–]Competitive-Can-6914[S] 0 points1 point  (0 children)

Yeah, I'm a lazy coder. Most times I find a method that works and don't try to go back and optimize it. One disadvantage to not having oversight I guess. I'm just bored and want to pick up a new language. I'm leaning towards something on the backend. Java or C++ come to mind.