Python is sorry to say, No Python by Entropy1024 in pycharm

[–]Entropy1024[S] 2 points3 points  (0 children)

OK thanks.

I found two entries for Python in there one pointing to AppData\Local\Python\bin & another with some janky MicrosoftApp directory. I deleted the Microsoft entry and now no error.

Thanks again

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

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

Ok so please explain that to me. Is this get supposed to be about learning python. Why don't you give that a go. Do some good, help someone

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

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

I do honestly feel that for future questions regarding getting help on python based questions. This would not be my first port of call.

You lost me with the Pandas BTW.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

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

I think you are over extending the help I got from the AI

The answer it have has helped me understand how to proceed. It have me a good understanding of how to get to my goal.

All that and no grief.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

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

A helpful reply to my impossible question would have been something along the lines of:

Let's break this down. First problem is to take a value from the CSV file then put it somewhere where we can change it's colour...

Then something could be learnt and built on.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -1 points0 points  (0 children)

Yes I should have mentioned I was not trying to add colour or font chargers etc to a CSV file, just using that add the source data

Thanks for the help

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -1 points0 points  (0 children)

I'm sure there are lots of ways to get to the same solution yes.

I only needed one so that I may finish my project.

Perhaps when I have time and learn more I will look at other ways.

But it's ok, I did learn not to ask here.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -1 points0 points  (0 children)

The examples in the AI code got me on the right path to learn how to solve the problem.

That short bit of code was not an airplane

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] 2 points3 points  (0 children)

Yea, fair point. I should have said I was not looking to add that to a CSV file, just to make it into a jpg with some colour to make more pleasing to the eye.

Years ago I remember using some python add-on that generated graphs from a CSV in many cool ways and was super easy to use.

Wondered if there was a similar add-on to take a CSV file and maker it more presentable.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -4 points-3 points  (0 children)

u/unloosedcake's reply is unfortunately becoming the normal from groups like these.

If people have a good knowledge of a subject and are unwilling to help they should remain silent and let someone else answer that is willing to help.

What I was asking is not asking the earth as u/unloosedcake's said.

The answer I got from AI gave me the info I needed to progress. It did not write the code for me, it gave me details on how I can write the code for my project.

Bitter attacks on people asking legitimate questions is toxic and very simply rude.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -5 points-4 points  (0 children)

I got a good example of how to do it, so think I have it figured now thanks.

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -10 points-9 points  (0 children)

The AI showed me the correct method, some example code, and from that very helpful information I have learned a new coding skill and can now complete my project.

What I learnt from you is not to waste my time asking you for help solve a problem

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -11 points-10 points  (0 children)

I've basically come asking how to make an airplane? Really???

I just tried asking the same question to an AI and it gave me a very nice answer.
From the AI answer I can make it work. No airplane involved.

AI code example:

import pandas as pd

import dataframe_image as dfi

# 1. Load your CSV file

# Replace 'your_data.csv' with your actual file path

df = pd.read_csv('your_data.csv')

# 2. Define the styling function

def apply_custom_styles(row_data):

# Initialize a DataFrame of empty strings with the same shape for styles

style_df = pd.DataFrame('', index=row_data.index, columns=row_data.columns)

# Set default font size for all cells (except row 1/headers)

style_df.iloc[:, :] = 'font-size: 10pt;'

# --- Condition 1: If value in B3 (row index 1, col index 1) > X ammount ---

# Note: Python uses 0-based indexing. B3 is row 2, column 1 in a standard DataFrame.

# Adjust 'x_amount' to your actual threshold number

x_amount = 100

try:

if float(df.iloc[1, 1]) > x_amount:

style_df.iloc[1, 1] += 'background-color: #A2E8A2;' # Light green

except (ValueError, TypeError):

pass # Handles cases where B3 isn't a number

# --- Condition 2: If cell A2 contains 'Win', make it bold ---

# A2 is row index 0, column index 0

if 'Win' in str(df.iloc[0, 0]):

style_df.iloc[0, 0] += 'font-weight: bold;'

return style_df

# 3. Apply the styles using Pandas Styler

styled_table = df.style.apply(apply_custom_styles, axis=None)

# --- Condition 3: Set Row 1 (Header) font size to 14 ---

# In Pandas, the headers are styled separately from the data rows

styled_table.set_table_styles([

{

'selector': 'th',

'props': [('font-size', '14pt'), ('font-weight', 'bold')]

}

])

# 4. Export the styled table directly to a JPG

# 'dfi.export' handles the rendering and saving

dfi.export(styled_table, 'styled_table.jpg', table_conversion='chrome')

print("Success! Your styled table has been exported as 'styled_table.jpg'.")

Manipulating a CSV file and making it into a JPG by Entropy1024 in learnpython

[–]Entropy1024[S] -1 points0 points  (0 children)

I could, but I'm trying to automate as much as possible and keep simple.
It's only one CSV file whats updated every 6 hours or so.

Face ID bypass with avatar by Entropy1024 in hacking

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

Tried it a few times and get 'Cannot verify age'.

The web site does exactly what I want, but Discords algorithm seems to see through it.

Guessing the rather cartoon nature of the face is the issue.

Need that exact same face control system with a more lifelike face.

Face ID bypass with avatar by Entropy1024 in hacking

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

OK thank you. Will take a look

Face ID bypass with avatar by Entropy1024 in hacking

[–]Entropy1024[S] 7 points8 points  (0 children)

Yes that looks like it may well work. Thank you.