#voice-chat-text-0
1 messages Β· Page 442 of 1
if you want to print with traceback, then traceback.print_exc, if I remember correctly
so use raise or something alike?
Oh No
!e
try:
raise ValueError
except ValueError as e:
print(e)
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
here
@vocal basin I need to take the key evaluation function as a lambda, not a code block with side effects
Move on
!e
try:
raise ValueError
except ValueError as e:
print(f"{type(e).__name__}: {e}")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
ValueError:
!e
print((lambda: lambda f: lambda: (lambda: lambda x: lambda: f()(x()(x))())()(lambda: lambda x: lambda: f()(x()(x))())())()(lambda: lambda g: lambda: lambda x: lambda: 1 if x() == 0 else x() * g()(lambda: x() - 1)())()(lambda: 100)())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
!e try: print(1/0)
except: print("woot", e)
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | try: print(1/0)
004 | ~^~
005 | ZeroDivisionError: division by zero
006 |
007 | During handling of the above exception, another exception occurred:
008 |
009 | Traceback (most recent call last):
010 | File "/home/main.py", line 2, in <module>
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/VFNPZUWHVDFKELZZ6W4IAERHDY
lambdas work too, it's just regular Python
bare except:
print("use code block")
you've just demonstrated one of the reasons why it's considered an anti-pattern
the only case where it's excused:
except:
# do stuff
raise # re-raise as is
guilty as charged. Please hand me my sentence, Mama
so
try:
print(1/0)
except ValueError as e:
print(f"{type(e).__name__}: {e}")
is not the same as
try:
print(1/0)
except ValueError as e:
raise Exception(e)
no, completely different
Hello yapper
Stop the yap!
if you ever except then raise something else, consider using raise ... from e
it makes tracebacks quite nice and detailed
you get, like, error A caused by error B caused by error C ...
How long must we mourn that those responsible for descending Value Errors never redirected the error text to the semantic victor?
also this I found very useful for async
since you often end up moving errors across tasks and you still need to somehow piece them together
I never actually used threading, so I have no idea what that is.
I'm not the one trying to shake API stability out from under people
async can be used without involving threading
HI CAN SOMEONE HELP ME WITH SOME THING
PLSSSSS
π₯π₯π₯π₯π₯π€¬π€¬π€¬π€¬π€¬π€¬πππππππππ
what do you need help with?
please don't spam emojis, the bot might time you out for that
UMM CAN I TELL U IN PRIVIT PLLS
why?
IT IS BADD I MIGHT GET BENED
wdym?
lol
RAP BUT WITH A E AT THE END
???
yes, contact your local police
yes
I HAVENO EVADIN BUT I KNOW WHO DID IT
we cannot do anything to help in this situation, sorry
contact the police even if you have no evidence
IDID
dude, contact the authorities, this is a programming discord, we don't know how to deal with this, this isn't an appropriate place for this
BUT HE IS THE SUPERINTENDENT IN ARE SCHOOL WAIT IS IT ILLG TO RAT HIM WITH A VIRUS
our python skill cant help you
OK SORRY
this is going to cause you more trouble than good
first priority is your sister's safety, not revenge
This sounds like a topic for IRL people, not internet strangers
this is not a topic we can help with.
Like law enforcement
what country are you in? I can maybe look up a number you can call?
ππππππ
@hoary brook please discuss this somewhere else;
we're not qualified to help you, there are other communities online that might be of use
OK I WILL
("somewhere else" being not in this server)
JUST WAIT I WILL BE ON THE NEWS
and they're gone
how are you @vocal basin ??
probably ebtter that way
!stream 1297071424992841859
β @humble idol can now stream until <t:1743133594:f>.
!stream 1273628780207931463
β @whole bear can now stream until <t:1743133622:f>.
@vestal cradle π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@fervent yacht π
π
@pallid torrent π
@short mortar π
heloo
Write: python --version
@upbeat parrot π
/usr/local/bin/python3
nano ~/.zshrc
export PATH="/usr/local/bin:$PATH" - add the bottom
@rough silo π
@somber heath hey!
@meager apex π
can anyone help me with learning python, I've already watched many tutorials and done projects show in thoese easily,
but whenever i do or take a project myself, i just get stuck...
what should i do//
any suggestions
right
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
Thank you sm<3
What is this out of nowhere? Look at the values
Learn PyTorch for deep learning in this comprehensive course for beginners. PyTorch is a machine learning framework written in Python.
βοΈ Daniel Bourke developed this course. Check out his channel: https://www.youtube.com/channel/UCr8O8l5cCX85Oem1d18EezQ
π Code: https://github.com/mrdbourke/pytorch-deep-learning
π Ask a question: htt...
Standard form is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientific form or standard index form, or Scientific notation in the United States. This base ten notation is commonly...
test
@somber heath hello
ghibli trend is taking over the x
hi @upper basin
@upper basin where to find new research paper in ai field ??
for learning purpose
arxiv
any else ??
Arxiv is best imo.
For papers that is.
You can also just follow along github repos.
I find it interesting, the sub communities on this discord
"contextually, morning" aka afternoon
GitHubβ’οΈ Actionsβ’οΈ
(just the first association when hearing "actions" nowadays)
executable orders
halo guys
@gusty jetty π
Fauxntastic.
No audio activity, no keyboard and mouse activity.
If I talk but not type anything, it doesn't move me to AFK. If I type but not talk, it doesn't move me to AFK. If I only have discord open and am in call but I'm not talking, nor listening, but am actively watching sth which merits activity, then it doesn't move me to AFK.
That's how I understand it.
the latter wouldn't work in a browser
Discord app behaves this way though for me.
We can test it later. I'll join call but leave myself on mute and see if it throws me into AFK or not.
I'll go out so I wouldn't be doing any activity whatsoever.
?
An open-source x64/x32 debugger for windows.
@queen vigil it was likely @haughty pier
@queen vigil pgadmin
if you want GUI specifically for postgres, it's probably the best option
@queen vigil did you configure shmem for the container?
shm_size: 128mb this part
being in a container shouldn't noticeably worsen the performance
unless you're explicitly putting resource constraints onto it
from https://hub.docker.com/_/postgres docs
idk when but apparently the sound died
happy VPN times
(I did not hear the answer to this question if it was ever answered)
Hang out in the VC and respond via text to the spoken words
I am curious about this something else
Speaking of shrubbery
my wife planted an evil plant in our garden
and now it just wants to spread
So what are we discussing?
Put it in TOS becuase the bots disregard both robots and TOS?
Use robots.txt, those who ignore it will ignore it
regardless of hwere you tell them to not scrape
the question originally was about whether scraping a specific website was okay not about protecting from scraping
I should look into how ZeroNet works
even though it looks a bit like a crypto scam
Oh, so because the AI Bros ignore robots we shoudl assume that's the new cool thing to do?
was that the train:?
you can't snapshot the internet, it's decentralised
fallacies of distributed computation are not a checklist
@molten pewter re-inventing caching?
TeleGeography's comprehensive and regularly updated interactive map of the world's major submarine cable systems and landing stations.
TeleGeography's comprehensive and regularly updated interactive map of the world's major submarine cable systems and landing stations.
I don't really think speed is a priority of an archive
right through the Amazon?
around 300M?
a bit less, looked up
It's one of those countries that's bigger than it looks because of the mercator projection
What?
60 seconds Β· Clipped by Alisa Feistel Β· Original video "Instrumenting the real-time web: Node.js, DTrace and the Robinson Projection" by Bryan Cantrill
Why do you say that?
Are oyu assuming you ask in bumblefuck America where Pakistan is just a far away land?
and the other funny https://www.youtube.com/clip/Ugkxw3BDExPmwEA71trnB43gPJ-OEGathEJs
10 seconds Β· Clipped by Alisa Feistel Β· Original video "Instrumenting the real-time web: Node.js, DTrace and the Robinson Projection" by Bryan Cantrill
@keen meadow π
made to look good not to be accurate
"Russian government thinks X" and "Russia thinks/Russians think X" almost never aligns
@vapid walrus π
grew a lot?
looks like steady growth since 1960...
Are you certain you're dropping facts and not opinions?
Because that line is increadibly stable
Everyone always asks Canada, nobody ever asks Wouldada.
nobody ever thinks of the children
if you go back a bit, in SU there was no correlation at all between what government says, what government does, what people think, what people say, what people do
just a bunch of independent variables
That sounds like it would be very confusing for everyone involved.
not as much when you grow up operating that way your whole life
huh communist party of soviet union had only 19.5M members in 1989, I thought it'd be higher
CCP has around 100M
I bet the North Koreans are all about what Kim things
thinks
nothing to do with avoiding death camps
nope
it's 100% agremeent
π€£
Is that measured at the start or end of 1989?
"hey, you always have an option to be 'redeemed' in Kursk"
Yo LX haven't seen you in a while i feel like
not sure, but sounds a bit too early to matter yet
1990/1991 that'd be an important question
Hey π I've been around occasionally, just hiding in the background π How's it going?
Ah right
Not good nor bad my gpu got fried so no gaming or 3d modelling
Just work and now pyweek these days
Cooking rn
Ah that sucks
On shortly, just need coffee
Are you submitting an entry?
Yes i will
π
submit deez nutz
Don't expect much I'm much better at making game engines then i am at making games lol
What's the prompt?
Is slapping OK in Canadian business?
That sounds very unCanadian
did he apologize
?
If soemone slapped me, I'd lose my shit
and they'd be fuckin fired
Fuck that nonsense
asshole deserves to not be in a high paying role
I don't give a shit how smart you are
Congrats on the award @woeful salmon
human fucking decency
You can keep dumping all people in a single bucket to validate the reasoning for hte assault
maybe that's how Canadians are polite, all impolite ones are forced to be kept inside unix server rooms
but most people do not assault co workers
"those types of guys"
this is such a cop out
Up for 36 hours? I would not want them having ANY power on production
that's just askign for shit to break
SCP-127.0.0.1
Ok food is done so im gonna go eat
tautology
@queen vigil What are you talking about?
independent aka dependent on customers, supply chain, advertisement, ...
Maybe, but he is not dependent on the Boss.
He himself is boss
@astral coral Sorry didn't catch that?
we don't normally do that I think
Normally they should get automatically moved π€
Psst @molten pewter are you there? π
it's problematic only when it's near the channel limit of 25,
but near the limit we can't really monitor AFKness and many people are AFKish anyway
Hey
kk
the question was about @broken saddle
Sorry for the ping π
I completely misheard sorry I'm an idiot
I would guess they've got discord in open in the background and have forgotten π€·ββοΈ
Oxide has open source as one of its core business values
if you have ~four hours to spend watching stuff about corporate open-source:
#voice-chat-text-0 message
ChatGPT won't be able to judge
where is the embed
I... don't know
whatdidyoudo
That's weird
high-frequency salary when
"my proper workday did not yet start
therefore wait"
devops nightshift
@queen vigil parts are in Erlang
and/or Elixir
@rugged root nerd over this :3 - https://www.beyondallreason.info/screenshots
since you won't be here tomoz π’
So clean. That looks awesome
Total annhilation-like RTS full-scale Mech Commando
been watching games on it
it's a new game, in alpha
110 players split between 5 teams
1,000s of units
think it's max is 32,000 units?
Beyond All Reason 2025 - Beyond All Reason is a massive scale, free to play RTS inspired (and based on) Total Annihilation.
Check out BAR for FREE here: https://www.beyondallreason.info/
More Content @WintergamingTV
Main Channel @WinterStarcraft
Patreon: https://www.patreon.com/wintergaming
BlueSky: https://bsky.app/profile/wintergamingtv....
in case you're interested
Rails being used doesn't mean all code is in Ruby
they almost certainly aren't using Rails' ORM
Cya Opal
(was away so couldn't respond instantly)
no, Elon Musk isn't one of PayPal founders
Was he not?
Was he just one of the programmers that got brought on early?
which got merged into PayPal
Starlink is terrible, astronomical disaster
Huh
Right
In fairness to Starlink, it's the only way one of my co-workers can get internet where she lives
But that's the only fairness I can give
β€οΈ seeing the farmers hurt
I have a more niche reference
notign makes me happier than the proper stories of face eating leopards eating faces of their voters
Johnny the Homicidal Maniac
I'll be impressed if anyone knows that reference without looking it up
Sounds familiar, don't know from where
Except for hte right to receive the death penalty
noope
they have more rights
they are unkillable by law
whereas us fleshy people are able to be executed
If I rob you of your paycheck, I go to jail.
When a corporation steals your wages...
if they are found guilty
they gotta return the money
1984?
more like 1939 1936
Straight out of Hitler's playbook
"Allies" is a strong word
We were not "allies" with Russia in WWII...
https://www.theguardian.com/media/2017/mar/11/death-truth-propaganda-alternative-facts-gripped-world
It's comic series made by the creator of Invader Zim
.wa s define propaganda
PUSTULIO
information that is spread for the purpose of promoting some cause
Well
faith is not fact
so it is pretty much the original meaning
pushing beliefs
over facts
π€· sounds like modern propaganda to me
I think religion is bad
so propaganda is bad
Not factual ones π€·
Or if you're from New England, it's how you say you're going to look closely at something. "Yeah I'm gonna give it a propah' gandah'"
@willow light Can confirm?
empiricaism
If you're really drunk and believe in ultra conservative values, would that be the "Bar-Right"?
:L
Yes
they admitted htey did
and the evidence is clear
yes
but the law doesn't fucking matter
welcome to America
The party of law and order doesn't give a fuck about either
Fuck the flag
desecrate that shit
π π π π π π π
in the name of government employees
but only the pigs, not the rest of the federal government
all government employees are bad! Except the ones with hte monopoly on violence.
worship them!
or die...
So he's not a canadian proper?
topic we are imagined, everything we see, hear, feel and smell are illusion of perception, the brain is like a painter to a bowl of fruit
just speaks for canada?
lol
sure, we'll solve it right away
THose in power LOVE alternative facts
The dumber they are, the more likely to vote against their own interests
I do mine every February
Wait for documents? They should be in the mail no later than Jan 31.
Don't bother starting until the first week fo feb, you'll be done by the 2nd
Go through ivnestments? Don't you just get a year end 1099?
"why won't anyone think of poor Intuit execs losing their business?"
I want the MGBA movement
Make Government Boring Again
there should not be 600 articles about the fuckups of the government every day
lol
I am amazed ANYONE likes the fuck
Onion hire me
First off, he's fucking dumber than dirt
holy fucking shit, how can anyone believe a word the fuck says?
Why are you so mean to dirt
Same....
source of the claim: his father
He called America a shithole because he's so fuckign stupid
I lose all respect for people that like the guy π€· call me a bad person, IDC
he hates my existence
person of color, and trans? signal the alarms
Quite literally a modern day Hitler, studied the man, is trying to be the man
the only thing worse was if i was born somewhere else and lived here as a resident
The ONLY thing Trump has any expertise in, being a fuckin Nazi
Being I'm not so sure. Supporting them is more accurate
And only when it benefits him
loooooooooooooool#
Mmmm.... delicious prions
Fuckin Zim, comin in clutch
jung was so interesting to learn about in psych
The Overton window is the range of subjects and arguments politically acceptable to the mainstream population at a given time. It is also known as the window of discourse. The key to the concept is that the window changes over time; it can shift, or shrink or expand. It exemplifies "the slow evolution of societal values and norms."
The term is n...
Trump asked Putin for a cease fire and got fuck all instead
the art of trade
I'm an American
Which was the name of 18.04
Dr. Buser sees us as complex creatures that cannot easily be placed into diagnostic boxes. Although deeply informed by traditional psychiatric diagnostic principles and treatment strategies, he finds it more helpful to look at βhow can we optimize our functioning in all the spheres of our lives?βThis model seeks optimization of balanceas our...
Trumps polciies are hurting most americans
They are fucking us
Entirely
His voters are fucking idiots
Car pricves are bout to shoot up
how that helps us? fuck if I know
Idiots
The trickle down effect /s
Wait where does the sparrow come into that then
fuck calling it trickle down
feed all the oats to horses
the sparrows can eat the oats out hteir shit
if there horses have too many oats
There was a reason I put the /s for sarcasm after it
Ah gotcha
give aned deny
but it's better than telling us to eat shit
so I guess that's why it won
Don is Kompromat
Don is a traitor
straight fucking up
Would be a good name for a laundromat
Probably because of the "omat" suffix
Yea, GOP senators go to Moscow on the 4th of July because they love America
He is a felon
100%
Oh duh, I don't need to use the name
doesn't he look like he's got bare red-eye :L
@vocal basin When we were doing the nlvm thing yesterday, was there anything special you had to do to get it to compile on 18.04? Or did it even properly work
I did not test on 18.04, it was from the Dockerfile in the repo
Copy that
Thanks
Oh wait what... I can just build from the docker file in the repo
The fuck, how did I miss that
Wow
Even the docker build breaks
Whelp, giving up on that for a while
Oh shit. This is cool https://testcontainers.com/
A quote from the original translation in Chrono Trigger:
Am I butterfly dreaming I am a man? Or am I a bowling ball dreaming that I am a plate of sashimi? Never believe what you see and feel are real.
It's pretty common to have visual hallucinations when your eyesight is going bad
Your brain trying to interpret what you see into something comprehensible.
what was?
NixOS it's greeeaaaaat!
I'm warming up to it as a concept for servers
just something
[...]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.2.1)
Wait that's the ascii logo for Spring Boot? That's so hard to tell that's what it is
Or at least the middle of the word is
I really have to squint for it
alcohol dehydrogenase deficiency
A lot of these are pretty complex
Or maybe that's just me
@slim flame If you're wondering why you can't talk, check the #voice-verification channel. That'll tell you what you need to know about the voice gate
@molten pewter I tried benadryl the other night to sleep, because I've been sick, but it just made me like delirious. Or that could have been the sickness I guess
Yeah
"Do not operate machinery"
Which child do you steal it from?
Oh, you don't mean a particular child's dose
/s
Thankfully I've now moved from the sweating and chills fire into the non-stop coughing frying pan π
@gritty leaf Could you give a small example?
π
Could you sketch out what the result should look like?
Ah, so you want to do some kind of aggregation?
!e
ham = {"layer1": {"layer2": {"beef": 4, "pork": 3}}}
print(ham)
layer2 = ham["layer1"]["layer2"]
print()
print(layer2)
layer2["beef"] += 1
print()
print(layer2)
print(ham)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'layer1': {'layer2': {'beef': 4, 'pork': 3}}}
002 |
003 | {'beef': 4, 'pork': 3}
004 |
005 | {'beef': 5, 'pork': 3}
006 | {'layer1': {'layer2': {'beef': 5, 'pork': 3}}}
whats the discussion abouttt
Nested dicts
cool
whats the doubt
my bad
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
lectin_tertiary_dict = {
"epithelium": {
"follicular": {...},
},
"another one": {
"follicular": {...}
},
}
if position_value%2 and position_value < 6:
collector.appendlectin_tertiary_dict[position_value]
https://paste.pythondiscord.com/HQ6A heres the code if anyone wants to tell me how i did
first time in fastapi, or a backend in python
@gritty leaf Does your data come as a big flat table in a pandas dataframe?
Are you able to share a subset of the data as a csv?
Ah right
someone was asking who they were previously talking to about Nix, so it was probably you who they meant
Yeah, I'm nominally a mod π
this is chat of
vc right?
yes, but half of the time no.
Depends on which VC we're in
size = len(lectin_tertiary_dict[str(position_value)])
counter = size/size
if position_value =< (counter*3):
collector.appendlectin_tertiary_dict[str(position_value)]```
use ` ``py
Feel free to @-me anytime about Nix/NixOS
size = len(lectin_tertiary_dict[str(position_value)])
counter = int(size/100*size)
if position_value =< (counter*3):
collector.appendlectin_tertiary_dict[str(position_value)]```
?
collector = []
size = len(lectin_tertiary_dict[str(position_value)])
counter = int(size/100*size)
if position_value =< (counter*3):
collector.appendlectin_tertiary_dict[str(position_value)]
do '''py and not just ''', but replace ' with `.
Dog definitely heard the word "chicken"
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
thanks
you can do it with others like shell, c, cpp, etc..
@gritty leaf I was just thinking, a better way to do this might be to use the built-in aggregation function in Pandas. I'm still not clear on exactly what result you want, but you could do something like: ```py
(
df
.groupby(['epithelium_lumen', 'phase'])
.mean()
)
The result would be a data-frame, I think
Yeah, I've been trying to learn it better lately
I'm not sure how we'd handle the np.array part, actually
thats what chatgpt is for, lol
if str(position_value%2): ????
Because I have up to stuffing the stuff into its own dictionary to accumulate it. But I don't know if you can just add those together or something
He wants ALL the values
Not just the evens
Back in a sec, snagging some free food Friday food
working with json sucks, lol
for _ in range(0,len(lectin_tertiary_dict[str(position_value)]):
Not every number is represented
You'd need to use .get() to prevent an error
would it work then?
And you can just use dict.values() or dict.items()
Derp, I can't stop trying to answer. I food now
pos_stained_area_list = []
for value lictin_tertiary_dict["epithelium"]["follicular"].values():
pos_stained_area_list.append(value['pos_stained_area'])
for _ in range(0,len(lectin_tertiary_dict[""][""]): ?????????????????????????
doesn't work that way.
¬¬
here
there is no element "" so it will crash, at least I remember it like this.
for _ in range(0,len(lectin_tertiary_dict[][]):????????
!e
a = {"b": {}}
for _ in range(0,len(lectin_tertiary_dict[""][""])
pass
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | for _ in range(0,len(lectin_tertiary_dict[""][""])
003 | ^
004 | SyntaxError: '(' was never closed
So, I think this should do what you want, but I'd recommend trying the Pandas approach as it will make your life much easier. ```py
{
sample: {
phase_value: {
'pos_stained_area': np.concat([
subdict3['pos_stained_area']
for position_value, subdict3 in subdict2.items()
])
}
for phase_value, subdict2 in subdict1.items()
}
for sample, subdict1 in lectin_tertiary_dict.items()
}
what.
!e a = {"b": {}} for _ in range(0,len(lectin_tertiary_dict[_][_]): pass .py
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | for _ in range(0,len(lectin_tertiary_dict[_][_]):
003 | ^
004 | SyntaxError: invalid syntax
@gritty leaf hey man, can you just summarize the problem again? it sounds interesting
test = {
{
{
{
}
}
}
}
.
here
If you could post just the column names and the first couple of rows of the data (i.e. export as csv and copy-and-paste the first like 4 lines), I could advise you on how to use Pandas to do this effectively, if you like.
t = {
'test':{
'test2':{
'2':{
"final_data":'1'
}
}
}
}
final_t = {
'test':{
'test2':[
{"final_data":'1'}
]
}
}
STOP YELLING AT MY FRIEND
@gritty leaf
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Yup I think
Hi, im new, how do i post code
!paste
!paste
Or the pastebin linked above
uhm use the paste bin
j = t['test']['test2'].values()
t['test']['test2'] = j
If you need help, the best place to ask is #1035199133436354600 Feel free to make a post with your question
"num_1":{"1":"1","2":"2","3":"3"},
"num_2":{"1":"1","2":"2","3":"3"},
"num_3":{"1":"1","2":"2","3":"3"}}}}```
Oh, could you export as CSV? It's easier to paste around as text.
Comma-separated variables, fyi
Yep
CSV, TSV, whatever π
Yeah we block files sorry, but you can paste it here: https://paste.pythondiscord.com/
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Click here to see this code in our pastebin.
is fine now
kind of does, but not really.
Oh it is? π I'm not up to date
idealized data
{
1 : {'top_level_name' : "epithelium",
'bottom_level_name' : follicular'
'number_list' : [2,4,6,7,8],
'pos_stained_area_list : [np.array_1, np_array_2..]
2 : ....
}
save_dict = {}
index = 0
for top_name, top_dict in lictin_tertiary_dict.items():
for bot_name, bot_dict in top_dict.items():
num_list = []
array_list = []
for num_name, num_dict in bot_dict.items():
num_list.append(num_name)
array_list.append("num_dict[pos_stained_area"]
save_dict[index] = {"top_level_name": top_name,
"bottom_level_name: bot_name,
"number_list : num_list,
'pos_stained_area_list': array_list}
index += 1
here is a more table alike variant https://paste.pythondiscord.com/53PA. (turn on word wrap)
@storm jewel Grats on getting voice perms
haha thanks man
using !paste or !code
!code
t = {
'test':{
'test2':{
'2':{
"final_data":'1'
}
}
}
}
final_t = {
'test':{
'test2':[
{"final_data":'1'}
]
}
}
j = t['test']['test2'].values()
t['test']['test2'] = j
print(t)
I can grant screen-sharing permissions if you like?
i guess for a while?
β @gritty leaf can now stream until <t:1743184720:f>.
Da squigles
the {} part of f"" is code alike.
!eval ```py
import pandas as pd
import io
df = pd.read_csv(io.StringIO('''
Slide,position,phase,Culdersac,epithelium_lumen,Section (1 being closest to main lumen),Total Area,Negative Area,Positive Area,pos_stained_area
P2_16F,2,follicular,1,epithelium,1,5169.6181,2280.8264,2888.7917,55.88017614
P2_16F,2,follicular,2,epithelium,1,12315.6975,3443.4358,8872.2617,72.04026975
P2_16F,2,follicular,3,epithelium,1,3642.9443,1797.3628,1845.5815,50.66180946
P2_16F,2,follicular,4,epithelium,1,8755.6696,3540.3835,5215.2861,59.56467453
P2_7F,2,follicular,1,epithelium,1,7971.6675,6370.4966,1601.1709,20.08577126
P2_7F,2,follicular,2,epithelium,1,7122.6079,3805.2043,3317.4036,46.57568754
P2_7F,2,follicular,3,epithelium,1,5718.1391,4363.9302,1354.2089,23.68268551
P2_7F,2,follicular,4,epithelium,1,7654.2907,5385.9653,2268.3254,29.63469104
P2_7F,2,follicular,5,epithelium,1,18659.9165,11983.0137,6676.9028,35.78206151
P2_8F,2,follicular,1,epithelium,1,32393.3486,32236.7012,156.6474,0.483578904
P2_8F,2,follicular,2,epithelium,1,16978.1251,16552.8301,425.295,2.504958572
P2_8F,2,follicular,3,epithelium,1,8634.2294,8606.6758,27.5536,0.319120546
'''))
aggregates = (
df
.groupby(['epithelium_lumen', 'phase'])
['pos_stained_area']
.agg(['mean', 'sem'])
)
print(aggregates)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | mean sem
002 | epithelium_lumen phase
003 | epithelium follicular 33.10129 7.058952
Then to select a particular entry from the table of aggregates, you can do this: ```py
aggregates.loc[('epithelium', 'follicular'), 'sem']
Gone to get something to drink, back in a bit
Yep
Thirst quenched
Oh so that's just because pd.read_csv will only read from files, not strings.
So I had to do that to include the csv as a string in the code.
io.StringIO emulates a file
Don't worry about it
Yeah so it groups the rows of the table based on the values of one or more columns
So if two rows have all the same values in those columns, they get put into the same group
You can then aggregate over each group (e.g. taking the mean or standard deviation).
Right
Pandas, although it's built on top of Numpy
It's the same maths either way I think
I was wondering if you might like to try doing this on the full data? Just to try it out
Alright
Yeah I wasn't really following along π
Yeah you can
I used read_csv so I could copy and paste the data into the code.
The outermost parentheses are just so that I could split the expression over multiple lines
I never really got the hang of using debuggers effectively. I still tend to use either print debugging or assert statements
I honestly find some IDEs a bit overwhelming
@spare galleon
Too many buttons
it surely have a friction but its a great thing , trust me i used to hate it haha
Yeah I need to stop being lazy π
thats what im saying, it would slow down development for me, i use nvim and atom ohh and vscode
nvim + allacrity + zoxide
and kickstart
i just dont have bugs in my code, lol
The connection's been a bit weird today
bro i keep getting rtc disconnected
Hold on, there might be a simple way to produce plots like this in Pandas, but I need to look up the details, one sec
Yeah it's intentional
I'm not sure why we did it that way, but yeah
"Combat Assists": combat_data.get("CombatAssists", {}).get("val", 0),
"Combat Best EliminationStreak": combat_data.get("CombatBestEliminationStreak", {}).get("val", 0),
"Combat Damage": combat_data.get("CombatDamage", {}).get("val", 0),
``` why did i put spaces in these values
combat."CombatAssists"
combat["Combat Assists"]
You could produce a boxplot (I'm not sure exactly how to make a bar-plot with error bars) like this: ```py
import pandas as pd
import matplotlib.pyplot as plt
df = ... # import the data
df.boxplot('pos_stained_area', by='position')
plt.show()
Turns out you just have to pass a yerr argument: ```py
agg = (
df
.groupby('pos_stained_area')
.agg(['mean', 'sem'])
)
agg.plot.bar(yerr='sem', capsize=5)
Be right back
match answer:
case "field1":
pass
case "field2":
pass
case "field3":
pass
```i use this more then if/else, well when its possible
@humble pumice Were you asking about streaming permissions?
Oh right
Yeah
!stream 323926281416736791 30M
β @humble pumice can now stream until <t:1743192184:f>.

!voice_verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@gloomy crest^
Ooh tiling window manager, nice
Yeah I love sourdough
But only occasionally
That's what bread does Β―_(γ)_/Β―
Make croutons
me toooooo
I'm a bit microphone shy
my mom makes the greatest sourdough
i get fresh sour dough like 4 times a week
okay ima go, goodluck to yall
Cya π
I heard my name
A ago while I think
It might be more obvious with the new interface
has this always been a thing?
Yeah I think it's been a thing as long as I've been using Discord
I guess I never noticed
Β―_(γ)_/Β―
Hello
You can, but you usually don't want to
I mean iterate the rows, what you originally asked
Hey everyone.
howdy
The names of the columns are given by df.columns
How are you doing?
Ok, that sounds like a group-by operation
How can you do that?
I think I right clicked the other stream
there was an option to watch additionally or some kind of words
and I clicked that, and had 2 streams going
No more having to choose!
I clicked that but I can only see the screen full that I clicked on not both
Oh right, just click on the stream, and it will go back to showing you everyone as thumbnails
Then under ... de-select "show non-video participants"
Got it. Thanks.
@gritty leaf When you're doing data-analysis with Python, you might find it more convenient to use an interactive environment, like IPython or a Jupyter Notebook.
Yeah
Jupyter notebooks take that a step further in letting you intersperse formatted text, code, and images.
Yeah
Yep, it's free
It's well worth learning Pandas if you're doing data-analysis fairly often
@gritty leaf Do you want to try Jupyter?
once a wise PM once said "it needs more A.I"
hello
hello @astral coral
hey
yeah not bad, you?
relaxing after work before i start my pet project
been learning to use tkinter, and I've been making a calculator
ahhhh nice man ahahahhaha
?
huh?
@astral coral hello
alright
@whole bear π
hi, im trying to screenshare, i have no access
didnt hear you, can you type pls
i need to tell a mod to give me access?
Screen sharing permissions are available upon request of voice-regular moderator-level-and-above users at their discretion.
ah breh
What are you interested in streaming?
i was trying to show my code to someone who was helping me
To get access to screen share first disclose your credit card info.
the glowing thing no longer lags as catastrophically
well in firmware terms it is reset
stuff doesn't really shutdown/restart the way it's viewed on a higher level
@somber heath you've seen that Android is being reproprietarized, right?
becoming closed source
last chance to buy google pixel before it went from the most open to the most closed
if it's closed source, people will reverse engineer it anyway
(as in closed source does not increase security when you're not hosting something as a service)
EU laws explicitly allow not only reverse-engineering but also altering the software
when the reason for that is quality or security concerns
(I did just do that with Pixel 8)
allegedly Pixel 9 still allows loading a different OS
but too expensive here
... yes the phone turned out to be more expensive than my laptop
it I get a proper Linux on a phone with mobile internet working, that'd be optimal
one of the most important apps on a phone for me is obviously termux
even though it's limited, it's still, at least, the best SSH software
that sounds like a Onion article
(COBOL -> Java thing)
if they can't write good code in COBOL, they can't write good code in Java
@somber heath JITted well enough
JVM is very performant
for non-AOT one of the best options
maybe just update to COBOL 2023
and introduce proper engineering practices
big rewrite is not a viable thing most of the time
there are JVM implementations of COBOL
hopefully they at least first port to that
tbf that assumes existence of any goals of the rewrite
I don't think these guesses are moving in the right direction
minesweeper
cool
oh
same thing
wallah bro i can make that within 5 minutes
on everybodys soul
on everyone bro
there are some non-trivial parts of implementing minesweeper
i have so much motivation and i have watched alpha andrew tate video and i am moving to dubai
cascading opening of 0s, chording
habibi come to dubai
habibi come to dubai
leave dubai and come back
GET OUT
omg u no in dubai
no sigma
no alpha
no man
on my soul dubai is not a tourist cty its a really good city with very good weather rich history and kind people
and only workers have built the city
absolutely insane
for me, as a Russian woman, the probability of being in Dubai for purposes not related to human trafficking is very low
???
bro what
i read the last part
dude geniuely what the sigma
did Durov come back to Dubai already I wonder 
i didnt know people in russia had internet bro
do you guys have bluetooth
???
microwaves
functioning electricity
bro habibi come to dubai bro we have everything
forget russia
$10 for gigabit internet a month, relatively cheap internet
habibi come to dubai
bro i thought u guys had that bald guy thats obsessed with ukraine brp
what more
do you need
???
HABIBI COME TO DUBAI
even i a german sociologist prefere dubai
the west has fallen
hell no you guys have spiders
koalas
snakes
by life yes animals no
why would you even be in australia???????
do you ride kangaroos or do you guys have cars???
habibi come to dubai
forget australia
kangaroos stepping in your yard??+?
so what you go to work and when you step out you see kangaro infront of you?
come to dubai
we have andrew tate alpha sigma
bro
you missing out
dubai dubai dubai
what do all these words mean
it means that i, the alpha, am living a successfull life.
pol pot?
are you two connected
I'm too boomer brained for whatever kids these days invent/talk about, I just cannot adapt this word set in any way
i bet 5 bucks you are 14
on everybodies soul
everyones
I would tell you where to send the money, since you bet and lost, but rule 9
i dont even got money
haha
get noobed
anyone wanna play chess
i am proffesional
Join the challenge or watch the game here.
opal mist hop on chess.
ggs
i have never played bullet before
but it was fun
thanks
I used to play it a ~year ago I think
i did ton of mistakes meanwhile you were more accurate than me by a landslide
I dropped chess for a while, almost exclusively playing this instead
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
@surreal stream π
Hey
I might be somewhat stuck
okay, I get a potential excuse to end the game early
nvm I guess it right
the gambling approach did not pay off
lmao
why that specific cell: it would've prevented a certain 50/50 later on
@vale nacelle π
first click is non-mine, therefore guaranteed win
I wonder if there are stats of how many 8s I opened
each opening gives me somewhere between 1 and 3 tickets
- some number of 8s opened not when logged in
seems a bit L8
Yo are you Swedish


