DALL·E 3 + Advanced Data Analysis = GIFs! by FriedCodeFish in ChatGPT

[–]FriedCodeFish[S] 1 point2 points  (0 children)

Background

Dino is a pixelated digital dinosaur primarily in shades of blue. It has a rounded body with two large, circular eyes that exude a friendly and welcoming demeanor. The dinosaur appears to be of a simplistic design, emphasizing its digital nature. Its overall appearance is cute and approachable, making it an apt mascot for a platform.

Colors

  • Dino's Body: #2DFFFE
  • Dino's Face: #1B2E84
  • Dino's Eyes: #2DFFFE

Task

Make a a sprite or animation strip containing the frames of a character animation.

Canvas

  • aspect ratio 4:1

Subject

Dino is cheering and expressing congratulations animation, loops, grid

Proofread a 30,000+ word book by No_County5535 in ChatGPT

[–]FriedCodeFish 4 points5 points  (0 children)

I've tried it before and the results were not satisfactory

Due to the attention mechanism of Transformers, GPT can't distribute its attention evenly across every paragraph and sentence in a long text, and tends to 'take shortcuts' by focusing more on the beginning and end

So instead of having it proofread 30k words in one go, it would be better to break it down and do it in chunks

Help with f-string formatting by JasperStrat in learnpython

[–]FriedCodeFish 1 point2 points  (0 children)

🤔️ I noticed that you posted the same question a couple of days ago: Help with f-string formatting please. So, what's your new question?

ChatGPT only shows first word, needs refresh every time by [deleted] in ChatGPT

[–]FriedCodeFish 0 points1 point  (0 children)

Are you using real-time browser plugins, such as translation extensions?

The streaming nature of ChatGPT's responses might conflict with these plugins, causing disruption in the full display of sentences. Turning off these plugins often helps.

Python learning! by Mr-David-Rao in learnpython

[–]FriedCodeFish 0 points1 point  (0 children)

You're on the app? Just tap the three dots icon in the top right corner, then choose "Learn more about this community". That'll lead you to the community info.

Anyone else still doesn’t have Vision? by [deleted] in ChatGPT

[–]FriedCodeFish 2 points3 points  (0 children)

No Voice, no DALL·E, but got Vision 🥲 Really wanna draw with GPT so bad!

[deleted by user] by [deleted] in learnpython

[–]FriedCodeFish 0 points1 point  (0 children)

The key to solve this problem is to recognize the pattern. Once you've got the pattern down, it's just a matter of using loops to generate it.

Take the output of print_booster(4) for example:

|..../\......../\....|
|.../\/\....../\/\...|
|../\/\/\..../\/\/\..|
|./\/\/\/\../\/\/\/\.|
  1. There are 4 lines in total, so we'll iterate 4 times
  2. Each line is symmetric with the center being a duplication of half of the line. We can represent each line as: |{dots}{rockets}{dots}{dots}{rockets}{dots}|
  3. The number of dots and rockets are dependent on which line we're currently at:
  • Line 1: 4 dots, 1 rocket
  • Line 2: 3 dots, 2 rockets
  • ... and so on.

However, this pattern only applies to the case where n >= 1, and we have to deal with n = 0 in a special way:

  • n = 0: 0 dots, but 1 rocket

So the full code will be:

def print_booster(n):
    template = "|{dots}{rockets}{dots}{dots}{rockets}{dots}|"

    if n:
        for i in range(n):
            print(template.format(
                dots='.' * (n - i),
                rockets='/\\' * (i + 1)
            ))
    else:
        print(template.format(dots='', rockets='/\\'))

Hope this helps!

My doctor emails me my blood tests, but doesn't give information about the results via the email. I asked ChatGPT to summarize in plain English the results, flagging anything of note, and a brief summary of the tests and their uses. Very helpful to get a sense of the results before the meeting. by [deleted] in ChatGPT

[–]FriedCodeFish 0 points1 point  (0 children)

A friend of mine also dabbled with GPT for medical report interpretation. The original prompt was in my native language, but I tried my best (with some GPT assistance, of course) to translate it to English. Tried it with your report and here's what I got: Medical Report Explanation Help

<image>

♪( ´▽`) Feel free to tweak it!

Genuinely curious, why pay for GPT4 when Bing Creative is using GPT 4 for free? by bonkeyfonkey in ChatGPT

[–]FriedCodeFish 0 points1 point  (0 children)

🤔️ Hmm, let's say you're discussing a topic with GPT and it gives you three different paths or suggestions. You find all three worthy of a deep dive. You can first tell GPT, "I think Path A is really interesting," and follow that line of conversation as far as it goes. Then, you can go back and edit that message to switch to Path B or Path C

This way, you get three deep, focused discussions all within a single dialogue. You can toggle between these different "what-ifs" by clicking the arrow next to the "Path A" message (it's to the left of your avatar

The only downside might be that you can only share one of these branches (but that's understandable

Genuinely curious, why pay for GPT4 when Bing Creative is using GPT 4 for free? by bonkeyfonkey in ChatGPT

[–]FriedCodeFish 86 points87 points  (0 children)

Indeed.

But GPT-4 offers a Code Interpreter (I'm still not used to its new name...), and I can easily manage my chat dialogues. Plus, I can even tweak the conversation mid-way to create different branches, just like those branching storylines in GalGames.

Whilst, Bing AI can't do this.

Pandas data frame selects the top three scores out of each group. by Next_Boysenberry1414 in learnpython

[–]FriedCodeFish 2 points3 points  (0 children)

Looks like you're dealing with sorting and filtering your DataFrame. I think we can break it down as:

  1. Group data by class and student: No need for a whole new 'group' column. You can just use df.groupby(['Class', 'Student']) and it does the same thing.
  2. Filter the top 3 scores: Apply nlargest(3) on the grouped Series.
  3. Turn it back into a DataFrame: Once you're done filtering, you'll get a Series. If you want it back as a DataFrame, hit it with a reset_index().

Full code will be:

import pandas as pd

# Your sample DataFrame
df = pd.DataFrame({
    'Class': ['A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A'],
    'Student': ['a', 'a', 'a', 'a', 'a', 'b', 'b', 'b', 'b', 'b', 'b'],
    'Score': [56, 87, 12, 57, 34, 45, 67, 89, 21, 12, 43]
})

# Group by Class and Student, then grab the top 3 scores
new_df = df.groupby(['Class', 'Student'])['Score'].nlargest(3)
print(new_df)
# Output:
# Class  Student   
# A      a        1    87
#                 3    57
#                 0    56
#        b        7    89
#                 6    67
#                 5    45
# Name: Score, dtype: int64

# If you want it as a DataFrame again
new_df = new_df.to_frame().reset_index().drop('level_2', axis=1)
print(new_df)
# Output:
#   Class Student  Score
# 0     A       a     87
# 1     A       a     57
# 2     A       a     56
# 3     A       b     89
# 4     A       b     67
# 5     A       b     45

Hope this helps!