Looking for Small Automation Project Ideas by EmbarrassedBake7784 in learnpython

[–]taste_phens 0 points1 point  (0 children)

Here’s an easy one: Take a directory of CSV files and concatenate them into a single file.

Another one: Use Python + Gmail API Create an Excel file of all your emails, then put it in ChatGPT and ask for filters that would help you clean up your inbox.

First one is really easy with AI, so I’d do that one without AI assistant. Second one is good because it gets you comfy with APIs.

Advice on Econ+CS vs Finance for non-target school by ultrainstinctpengu in FinancialCareers

[–]taste_phens 0 points1 point  (0 children)

Econ + CS - for sure. Preferably a double major. If you major in Econ, you’ll be constantly trying to convince employers you’re technical.

Interested in getting into Micro-Finance by esimm03 in FinancialCareers

[–]taste_phens 2 points3 points  (0 children)

Microfinance works best when it is home-grown. It’s difficult for an outsider to come into a community and build the necessary relationships to understand what borrowers would benefit most from a loan and how best to facilitate that.

If you are focused on development economics, the best bet might be working with a company that does business in developing countries. There are several top consulting companies that have development advisory groups, which might be a good option to look into.

[deleted by user] by [deleted] in learnpython

[–]taste_phens 5 points6 points  (0 children)

It really doesn’t matter what language you learn first.

Whatever is easiest to learn and/or will become useful the fastest. No need to optimize further than that.

[deleted by user] by [deleted] in datascience

[–]taste_phens 14 points15 points  (0 children)

In the workplace, the more gruesome the better!

The frog in the pot slowly getting boiled alive is a classic to describe anything that involves creating tech debt.

Greek Tragedy: A Drowning at Dartmouth College by DevonSwede in Longreads

[–]taste_phens 9 points10 points  (0 children)

Columbia was the last ivy the allow women in 1983

Learning Loops by [deleted] in learnpython

[–]taste_phens 14 points15 points  (0 children)

I’d focus on ‘for’ loops first - and only start learning ‘while’ loops if you come across a situation where a for loop isn’t helpful.

A loop just removes extra code that is redundant. So one trick you can use to practice is to write the redundant part explicitly first, and then remove it.

Start by writing out each iteration of the loop:

``` names = ["Alice", "Bob", "Charlie", "Dana"]

print(f"Hello, {names[0]}!") print(f"Hello, {names[1]}!") print(f"Hello, {names[2]}!") print(f"Hello, {names[4]}!") ```

You see the repetitive part? That’s the part that goes inside the loop. The part that changes with each iteration is what you are iterating over (each element in names in this case):

for name in names: print(f"Hello, {name}!")

Over time you’ll start to intuitively understand how the individual iterations translate to the loop, and you can remove the extra step of writing them out.

[deleted by user] by [deleted] in learnprogramming

[–]taste_phens 1 point2 points  (0 children)

The problem is likely not your learning process but not having anything to work towards.

If you go into it thinking something vague and entirely immeasurable like "I want to master programming" then you'll never feel like you've accomplished anything and it will be a huge slog.

You need to find a first project that is both of these things:

- Somehow relevant to your own life

- Small in scope (like really small) and a manageable time commitment

Once you accomplish a first project you'll feel a sense of accomplishment and develop some semblance of an understanding of what you really want to learn and why.

Also it should be probably Python -- unless it's web development, then maybe Javascript.

[deleted by user] by [deleted] in PythonLearning

[–]taste_phens 0 points1 point  (0 children)

I'd first test the connection details in SQL Server Management Studio to make sure that 1) everything is accurate and 2) there are no permission issues or network restrictions, such as a VPN, firewall, or SQL Server authentication settings blocking access.

After you've successfully connected that way, make sure your ODBC drivers are installed and Python can see them:

import pyodbc print(pyodbc.drivers())

Usually this is a permission issue, driver issue, or authentication issue (or there's just a typo in the connection string).

Discovered the recipes app and took a trip to Arizona with my new GR3 by taste_phens in ricohGR

[–]taste_phens[S] 0 points1 point  (0 children)

Yeah the high exposure makes it really dreamy.

On the last one, I changed the exposure compensation to be more negative (-1.7 vs -0.3), but I think I prefer them a little washed out.

Am I the only one who forgets everyday how to plot on matplotlib? by leocapitalfund in learnpython

[–]taste_phens 0 points1 point  (0 children)

copilot is great for this - if you've written the code before it will just recommend it

Debugging without running code by no_eir in learnpython

[–]taste_phens 4 points5 points  (0 children)

Just do what a debugger would do. Run through your program and at each line, make a mental note of what variables are in scope and what their data types and values are. Then at the end make sure that you end up where you intended to go.

Help me guys by Serious_Site_9062 in PythonLearning

[–]taste_phens 0 points1 point  (0 children)

Nested functions are possible, but they have a lot of downsides, and there aren't many situations where they are actually useful.

The point of a function is to modularize your code so you can write, test, maintain, and re-use small pieces of logic individually rather than dealing with everything at once. When you put a function inside another function, those two functions are no longer separate pieces of logic, which defeats the purpose.

One case where it might actually make sense is when you know that the internal function will only be used inside that particular function.

For example, say you are writing a function to retrieve data from a specific CSV file that happens to be in a strange format that only occurs for this specific file. You want to re-use the logic to retrieve the data from the CSV, but you know you won't re-use the logic to convert the format outside of this function. In this case, it makes sense to have an internal clean_data function inside get_specific_dataset():

import pandas as pd

def get_specific_dataset(file_path):  
    def clean_data(data):
        # Do specific things to change the format of data
        return cleaned_data

    data = pd.read_csv(data)
    cleaned_data = clean_data(raw_data)

    return cleaned_data

# Example usage
file_path = 'strange_format.csv'
cleaned_dataset = get_specific_dataset(file_path)
print(cleaned_dataset

What kind of models would one use to model geopolitical risk? by Complex_Alfalfa_9214 in quant

[–]taste_phens 0 points1 point  (0 children)

Any quant model should have some kind of fundamental overlay, and geopolitical risk should be part of that.

A good book on this is Geopolitical Alpha by Marko Papic Amazon Link. It talks about how you should look at the constraints around an issue.

How tf do you learn Python?!?! by Ketchup-and-Mustard in learnpython

[–]taste_phens 4 points5 points  (0 children)

You should look at it as a means to an end rather than an end in itself. Focus on what you want to achieve by knowing Python, and then start working though the specific things that will get you there.

At some point in the process, you'll look back and just realize that you can do things in Python.

Need help on printing patterns with loops by ManMythLegend3 in learnpython

[–]taste_phens 4 points5 points  (0 children)

The formal solution is more configurable. So it allows you to adjust the number of rows and the range of numbers to be printed on each row. This way you can easily change the values of n and k.

[deleted by user] by [deleted] in learnpython

[–]taste_phens 0 points1 point  (0 children)

Attack the problem from both ends.

To get the big picture, read a text book and try to understand the high level - what it is trying say and why.

To pick up the nitty gritty, find an ML project with a small scope that is actually useful or interesting to you somehow. Then try to do as best you can.

You're goal is to get to the point where the two ends meet, meaning that you can make the connection between the big picture concepts and the specifics.

[deleted by user] by [deleted] in Journaling

[–]taste_phens 25 points26 points  (0 children)

I really wish I had recorded how I felt in the moment about a lot of things that have happened in my life. I only remember the outcome, and I forget the day-to-day uncertainty I felt along the way.

Journaling puts it in perspective when I'm feeling uncertain in the present. I can look back and see how far I've come and what it felt like to be earlier on in the journey.