#voice-chat-text-0

1 messages · Page 740 of 1

golden isle
#

but I cant put the inputs after the if statement

young tundra
#

total coincidence

#

i am also anime shrek

#

believe it or not this isn't the first time this has happened to me

#

dread it, run from it, Shrek arrives all the same

wise cargoBOT
#

:x: According to my records, this user already has a mute infraction. See infraction #27037.

#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2021-01-22 20:38 (9 minutes and 59 seconds) (reason: duplicates rule: sent 5 duplicated messages in 10s).

olive hedge
#

!unmute 280180495625617420

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @whole bear.

terse vigil
#

GTG guys

olive hedge
#
"""
this is
all 
comments
"""
regal badge
#

wait do u have discord meme channel @whole bear

#

or @dark seal

#

or @olive hedge

olive hedge
#

no

#

no need to ping everyone in voice though xD

regal badge
#

oki just listening to conversation while working

whole bear
young tundra
#

define atrocious

#

oh

#

i see...

#

i really can't deal with spiders

#

especially not huntsman spiders

glacial tangle
#

everyone has a friend who play guitar

cyan quartz
somber heath
#

Big wide mouth.

cyan quartz
vague rampart
#

okay so I sent less than 50 messages and now i can't talk

#

that's interesting

rugged root
#

Pardon?

rugged root
dark seal
#

καφρος

formal prism
#

@molten pewter i dont have 50 messages

#

@broken eagle i dont have 50 messages

#

@molten pewter I dont think Java is going to stop existing. Because most of the legacy business legacy software is running java

#

Apple killed flash

hoary inlet
#

hahaha

#

guys, I have a question ?

#

I am stuck somewhere .

formal prism
#

that is not very helpful

hoary inlet
#
    
    def __init__(self,name):
        self.name = name
        country = pd.read_csv('country.csv')
        country.set_index('country',inplace=True)
        country1 = country.loc[country.index.str.contains(name)]
        
    def xaxis():
        print(country1['date'])

    def yaxis():
        print(country1['daily_vaccinations'])```
formal prism
#

and what is the question?

hoary inlet
#

How do I call the data out of the function ?

molten pewter
formal prism
#

tbh, I`m not exactly sure what you're asking..

India.xaxis()
hoary inlet
#

xaxis() takes 0 positional arguments but 1 was given

#

just trying to figure out how things work..

formal prism
#
def xaxis(self)
#

self is a reference to the current object

hoary inlet
#

This guy came to start shit !!

formal prism
#

Was this the correct answer to your question?

hoary inlet
#

<bound method Country.xaxis of <__main__.Country object at 0x000002201C824280>>

formal prism
#

self.country1

#

you need the reference to the current object

hoary inlet
formal prism
#

that you initialized in the __init__

hoary inlet
#

<bound method Country.xaxis of <__main__.Country object at 0x000002201C1769D0>>

#

still this

formal prism
#

Could you send source code and link to the csv

hoary inlet
#

kaggle dataset on covid data

formal prism
#

@hoary inlet is it this file country_wise_latest.csv?

hoary inlet
#

Had to remove the country 1 variable

formal prism
#

okay

hoary inlet
#

    country = pd.read_csv('country.csv')
    country.set_index('country',inplace=True)

    def __init__(self,name):
        self.name = name
        
    def xaxis(name):
        print(country['date'])

    def yaxis(name):
        print(country['daily_vaccinations'])```
formal prism
#
import pandas as pd
class Country():

    country = pd.read_csv('./country_vaccinations.csv')
    country.set_index('country',inplace=True)

    def __init__(self,name):
        self.name = name
    
    @classmethod
    def xaxis(cls):
        print(cls.country['date'])
    
    @classmethod
    def yaxis(cls):
        print(cls.country['daily_vaccinations'])
young tundra
#

not enough messages :/

#

i'll get there eventually

dark seal
#

sad

broken eagle
#

RIP

dark seal
#

just start converstation w people

#

no no no

#

dont do that

young tundra
#

ah nothing right now

#

i just came to get back into python after a bit of a break

#

lol

broken eagle
#

dont do that either

young tundra
#

goodbye

tardy blade
#

@whole bear want to help me test my code?

whole bear
#

@tardy blade not really.

tardy blade
#

ok

whole bear
#

@rugged root only if I could talk 😦

whole bear
#

@sick pendant good to see your ugly face in VC but you left.

sick pendant
#

I can't talk, my face is something you'd wish to have fyi

#

🖕

whole bear
#

@sick pendant Okay then!

stray zephyr
#

ok

whole bear
#

@halcyon flare HEY~

#

@halcyon flare not much!

#

Yeah probably idk how it works.

#

@halcyon flare I have infiltrated the system.

#

@whole bear Hi man

whole bear
#

hey

hoary inlet
#

    def __init__(self,name):
        self.name = name

        country = pd.read_csv('country.csv')
        country.set_index('country',inplace=True)
        country = country.loc[country.index.str.contains(name)]
        
    def xaxis(name):
        print( country['date'])

    def yaxis(name):
        return country['daily_vaccination']```
#

I think the country data is not loading the country = country.loc[country.index.str.contains(name)]

#

any help ??

hoary inlet
#

country = country.loc[country.index.str.contains(self.name)]

#

This line might be the issue

whole bear
#

@faint ermine YOU

hoary inlet
#

@faint ermine can you help me out, on the above code ??

whole bear
#

@whole bear are you mexican?

hoary inlet
#

@white turret any help on the above code ??

#

sorry !!

whole bear
#

I am just speaking about relevant convos in VC. You were talking to me @faint ermine ?

#

big deal...

#

@halcyon flare hey dude, I am back from being afk/deafened.

#

@white turret Hey dude

#

@hoary inlet hey!

#

@white turret Just saying Hi, I see you in VC.

hoary inlet
#

any help on the code above ?

whole bear
#

@faint ermine Where are you from?

#

ahh

#

I am from AMERICA!

halcyon flare
#

Wait really Nix?

hoary inlet
#

so we are gonna ignore me ?

halcyon flare
#

I thought you were from ˈCHilē

whole bear
#

@hoary inlet no one cares about ur code.

hoary inlet
halcyon flare
#

@hoary inlet This is the voice chat, but there are help channels above.

whole bear
halcyon flare
hoary inlet
#

I want the function to filter out the inputted country

whole bear
#

@faint ermine he just told me to "f off".

#

He can use the correct channels for receiving help.

hoary inlet
#

country

whole bear
#

@halcyon flare @faint ermine he has been working on that program for like 3 weeks.

hoary inlet
#

    def __init__(self,name):
        self.name = name

        country = pd.read_csv('country.csv')
        country.set_index('country',inplace=True)
        country = country.loc[country.index.str.contains(name)]
        
    def xaxis(name):
        print( country['date'])

    def yaxis(name):
        return country['daily_vaccination']```
whole bear
#

@halcyon flare well on my last account in this server.... he had asked me before.

tidal salmon
hoary inlet
#

so when I call the xaxis it filters out the country name I entered

whole bear
#

@tidal salmon Sorry. @hoary inlet I apologize!

tidal salmon
hoary inlet
#

I can use it to filter in different cells

#

but when I try in one code it says name not str

#

yeah

faint ermine
#

!e ```py
class A:
def init(self):
a = 1
def x(name):
print(name)
def y(self):
print(a)

b = A()
b.x()
b.y()

hoary inlet
#

nah it's fine helps understand the thought process

wise cargoBOT
#

@faint ermine :x: Your eval job has completed with return code 1.

001 | <__main__.A object at 0x7f286ce10fd0>
002 | Traceback (most recent call last):
003 |   File "<string>", line 11, in <module>
004 |   File "<string>", line 7, in y
005 | NameError: name 'a' is not defined
hoary inlet
#

I need to nest the def inside class ?

whole bear
#

@slim raft whats dawg

#

@slim raft doing well man! I had to make a discord account.

slim raft
#

""

#

C:\Users\jason\Downloads

whole bear
#

windows lol

faint ermine
#

!d pathlib

wise cargoBOT
#

New in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If you’ve never used this module before or just aren’t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example:... read more

hoary inlet
#

value = country[country.index.str.contains(self.name)]

whole bear
hoary inlet
#

it doesn't recognize the newer value assigned to it

faint ermine
#

!e ```py
from pathlib import Path

p = Path("C:") / "Users" / "jason"
print(p)

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

C:/Users/jason
hoary inlet
#

germany.axis

#

<bound method Country.xaxis of <class '__main__.Country'>>

whole bear
#

@slim raft Yes be careful and dont tell them its for school.. its actually quite easy to be banned on this server.

faint ermine
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.

faint ermine
#

!e print("test\ntest")

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

001 | test
002 | test
faint ermine
whole bear
#

I dont mind pdf's

#

Whats the issue?

#

I am not sure what I did wrong? I am completely new to the server. I have been in other community servers so i understand.

#

in public servers.. yes.

#

Lol @faint ermine mentioned that too.

#

Just wait till i get my voice verified.

#

he told me "f off"

#

seriously?

#

Okay next TOPIC!!

faint ermine
#

.topic

viscid lagoonBOT
#
**What is your favourite food?**

Suggest more topics here!

faint ermine
whole bear
#

Man of culture

#

first world problems

severe pulsar
#

Damn hemlock still in vc? Nice

rugged root
#

Not still

whole bear
#

what is that food called?

severe pulsar
#

Oh ok lel

rugged root
#

I'm stuck at the office, just popped up to scold someone

#

Been here for 12+ hours

severe pulsar
severe pulsar
faint ermine
whole bear
#

Im going to have trouble buying that in the frozen section of Walmart ain't I

faint ermine
#

aye

#

the type of noodles almost has to be self-made

#

but then again, its not hard

#

500g fine flour, 8 eggs, maybe a small bit of cold water and salt

whole bear
#

@halcyon flare Your mom did you a favor.

#

Brb everyone going to take a shower

whole bear
#

H2O is the best lol

faint ermine
whole bear
#

Offtopic :Have you seen the vaping commercials

#

Normally i see them on youtube

#

yes

#

The anti vape commercials

#

can i post links?

#

This ad is wild^

#

That is so interesting

#

what do you use for password management again>

#

I use Norton

#

cheep 2 year for 39$ for security,password manage,VPN ect

#

Downside i swear they log your data

#

same here I used it for 2 days and was like well this was a waste of money...

#

I learned though

#

Whats important

#

got it because i didnt trust my college and roommates

faint ermine
#

@neat seal

whole bear
#

I was a freshman in college and im not one to trust new faces instantly.

#

Im 2 years in now

#

I made friends and am having a good time.

#

We are off campus now thx to good old covid and have been healthy because of it

neat seal
#

oh hey

#

I found it now

#

thx bro it helps alot

#

I am new to this

#

nothing much

#

having a problem with one of python project

#

yes pls

#

can I send the file here

faint ermine
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

whole bear
#

I AM BACK!!

neat seal
#

now can you check

whole bear
#

YEAH

neat seal
#

yes

#

This is not my project

#

I am having problem running it

#

Is not working properly

#

sure

whole bear
#

How did you make that cool logo

neat seal
#

If you want I can give you the api to try

#

no

#

I am trying to use it

#

I am still learning python

#

is counting all the number as invalid

#

oh ok

#

ok

#

yes

#

yes

whole bear
#

and dumbie college kids that are stupid like me 😄

neat seal
#

yes it's international

#

But my number's are only usa num bers

#

to validate numbers

#

no

#

It's for the people who does sms marketing

#

so how can I make it simple

#

The thing is I am still learning python that's why I am having hard time understanding it

#

yes

#

yes

#

how can I learn that

faint ermine
neat seal
#

I just started learning python today

#

you have any good source where I can learn

halcyon flare
neat seal
#

oh

#

you have any Idea how long it will take for me to learn the stuff

#

yes

#

oh

whole bear
#

me as a college student took me 4 weeks D:

neat seal
#

and how many hours shouild I spend daily

whole bear
#

To be fair i was in 5 classes so true

neat seal
#

I am a visual learner

#

so the video will be good for me

#

oh

#

I can put 5 hours a day

#

so what's your major in collage

whole bear
#

laundmo off topic do you have experience with linear algebra topic reduced echelon?

neat seal
#

If you want to answer

#

if you don't it's fine

whole bear
#

involves matrices

neat seal
whole bear
#

well matrices are not too complex its just algebra

#

they are fun till college...

#

its like a puzzle of problems you have to find to get the numbers in a certain order.

neat seal
#

is going to collage worth it ???

#

ok see you

whole bear
#

If you have will power to get a degree yes.

neat seal
#

@faint ermine see you bro nice to meet you

whole bear
#

highschool is where it all starts though at least in america keeping your grades high enough to standout. Go to a community college to find your interest if you already have an idea and are hooked on it go to a university.

neat seal
whole bear
#

College is the min requirement to get 6 figures with a useful degree.

#

a 4 year program bachelors*

neat seal
whole bear
#

non of that associate degree nonsense

#

I have heard they are useless

#

In all honesty its all about theory

#

I learned how to code in highschool.

neat seal
#

oh

whole bear
#

I learned some amazing theory in college that just blew my mind away the complexity of some of these programs and what they can do,

neat seal
#

which major is good computer science or It or Is

whole bear
#

CISC computer science

#

is a basic that is popular right now

#

has a very high demand but is difficult.

#

you want to check out LinkedIn look for jobs involving computer information or computer science

neat seal
whole bear
#

if your in highschool or looking for colleges go to guidance offices if you have one ask how do i get started what are the requirements.

#

Alot of teenagers dont have this information growing up specially in poverty filled areas where education is not in their culture.

neat seal
#

but we have online class

whole bear
#

College is pretty low quality right now not going to lie because of it but after covid things should pick back up

#

My classes are all online.

#

I was on campus and felt the decrease in quality of education instantly.

#

when i left and went online^^^

neat seal
#

k bro nice meeting you

whole bear
#

nice meeting you

neat seal
#

I have to go now

whole bear
#

good luck learning 😄

neat seal
#

see you

neat seal
edgy holly
#

self thaught programmers are the greatest right ? !

whole bear
#

@warm axle

#

help me

#

i have plenty of work for you

#

haha

#

yes

#

your team

#

ill show

edgy holly
#

i'm in whatever the project is hahahah

whole bear
#

ascii rpg in tkinter

#

the scene loads slowly

#

it has been a challenge

edgy holly
#

i'm not anymore hahahaha

whole bear
#

hahahahaha

#

yes

#

sockets multiplayer

#

thank you

edgy holly
#

Any Artificial Intelligence lovers ?

whole bear
#

well

#

it's just my passion and my work

#

but I am going to change something

#

probably go to godot game engine

#

because I don't think i'm smart enough

edgy holly
#

u are

#

smart

whole bear
#

thanks

whole bear
#

HEYYYYYYYY 😉 you sexy goons in the VC right now 🙂

#

I am slick

#

NAH

#

Heyy @warm axle

#

@warm axle doing well. your voice is really sexy and so how are you doing?

#

I dropped out of college yeaterday

#

YES

#

Thank you!

#

@halcyon flare I have to be on here for 3 days. I meet all requirements

#

But I am not in hurry for the mods to hear my voice

#

I cant stop laughing right now.

edgy holly
#

ahhahhahahaha

#

buity what did u did so i can avoid it

#

hahahahahaha god took him the soul of his acc not even the admins

whole bear
#

Idk what you are talking about?

edgy holly
#

nothing ahahahah

whole bear
#

@warm axle good morning dude!

edgy holly
#

hahahaha

#

we are from morocco

#

halaluaa

whole bear
#

@warm axle do you know a guy named Bilal?

#

@edgy holly ^

edgy holly
#

me no

whole bear
#

a good friend of mine is from morrocco

#

morocco*

edgy holly
#

hahahahah

whole bear
#

nah first name is Bilal.

edgy holly
#

he is here with us ?

whole bear
#

hahaha i did not know it was a common name.

edgy holly
#

bilal is a known name here lot of people have the same name

#

yeah i do

whole bear
#

Everyone I haave known from Morocco are class acts and very good people.

edgy holly
#

but me i didn't sleep yet

whole bear
#

You guys Muslim too?

edgy holly
#

100*

#

we were born muslims hahahaha

#

we just got the vaccines yesterday

#

chouf tv hahahahhahahahahahahaha

#

is the most incredibly cringe news

#

don'tttt

#

don't give them viewsss

#

haahhahahahaha bread is on all our meals

#

2kg

#

culture

whole bear
#

You guys actually eat a full size bread a day?

edgy holly
#

3 breads a day

#

ahhahahahaha no

#

our metabolisme kills calories

#

hahahah we drink tea with it

#

it doesn't effect us at all

#

hamza u fuc*ed up by saying shouf tv ahhahahahaha

#

nooooooo

#

it's not

#

stop hahahahahahahhahahahahahahahhahahahahahahahhaha

#

look at hespress

#

HESPRESS

#

is great hahaha

#

we have camels

#

i am next to a girafe right now

#

desert

#

hahahahahahahha

#

i'm laughing so hard hahahahahahhaah

#

@halcyon flare search for (chefchaoune)

#

we called it the blue city

#

north afrika

#

ahahahhahaha nooo

#

yeah

#

U should come and visit u are all welcome

#

here we have 1k/1.5k per day

crisp prairie
#

welcome friends

edgy holly
#

no travels between states

edgy holly
#

we are 30m people here hahah the US is *10

#

yeah men us the last year was sick hahhaha protesters and shit

#

everything is good in ur university ?

#

yeah Capitalism broo

#

he will

#

surely

#

vaccines now are available

#

the economic situation is worse

#

only china who got advantage by 1.5% in 2020

#

it's hard to travel now

#

@halcyon flare which state u are ?

#

hahahahaha

#

it's not enough actually

whole bear
#

a

#

dsd

edgy holly
#

no it's 15/hr

whole bear
#

jk

#

jakowemji

edgy holly
#

biden said it

whole bear
#

oke

#

mi suppersed pls

edgy holly
#

really

whole bear
#

pls

#

halo

#

okey

#

pls pls pls

edgy holly
#

jak hey ?

whole bear
#

what

edgy holly
#

i was working for 21$/day and it's more than enough for a young guy like me

#

600$/month is great here

#

i didn't hear u ??

#

oh yeah 107k/year

#

ohh good luck

#

men

#

hahahah hamza imagine 190k per year doing what u love coding

#

there's rich people

#

who have billions

#

akhanouch

#

also chaabi

#

and sefrioui

#

akhanouch net worth now is 5billion dollars

#

and because it'ss the morning

#

ahahahah

#

hahaha me too

#

usually at night u have to go offline

#

now i have 38m

#

mp

#

i pay for 120mb

#

wait until i get access to talk ahhahah

#

i will give u all the info u need

#

hahahaha they study abt the arabic culture

#

in 1977 morocco declared the USA as a country

#

jhahahahah the first one

#

yeah hahahah people fail because they didn't know who was the president of usa on the ww1

whole bear
#

Obama?

edgy holly
#

hahahahahh u know him

#

hahahahah trump

#

chilcherl

#

?

whole bear
#

Winston

edgy holly
#

Woodrow Wilson

#

google answered

#

not me

#

hahahahaha

#

bhahahahah sorry

whole bear
#

he is also the 28th president of the US

edgy holly
#

smouhat akhay

whole bear
#

Most of the people on this server are Trump supporters (from what I understand)

edgy holly
whole bear
#

lmao

#

I am jk

edgy holly
#

okey so to be clear trump said we have to fight islam the first he get to the president selection

#

hahahah

#

but he said happy ramadan last year

#

hahahahahah

#

hypocrite

#

we are python supporters

#

and we talk python language

#

before he got banned from the white house hahahahah he did get the most valuable present from our king

#

lot of idiots o the whole world

#

not only US

#

hamza dnt start men i didn't even slept yet

#

hahaha

whole bear
#

USA!!! USA!!! USA!!!

edgy holly
#

BUITY!!! BUITY!!!

#

3/4hr is so bad for ur health

#

the WHO recommend 7hr/day

#

hahahahahah i slept on every chance i get on school / bus / train men i'm a panda

#

but at home i don't slee^p

#

see u bro

whole bear
#

I wish i had my mic

edgy holly
#

USA Usa come

whole bear
#

we can all get into a VC?

edgy holly
#

me too men

#

sure

whole bear
#

ONE DAY I WILL BE VOICE VERIFIED.
ONLY 2 MORE DAYS TO GO AND I CAN SPEAK WITH @rugged root

#

AND @warm axle @edgy holly AND @halcyon flare

#

@warm axle yes.. yes it will be good to hear my sexy voice.

whole bear
#

@somber heath Hi man

#

@somber heath okay sir!

#

@somber heath have a good nay

#

day

#

night

undone idol
#

I was saying HI

#

@somber heath

restive plank
#

hello

versed island
whole bear
#

hi

heavy shoal
#

!voiceverify

#

hi

elder field
#

@somber heath , any doubt?

somber heath
#

@elder field Pardon?

elder field
#

you were waiting in voice channel right?

#

so, i asked you have any doubt

somber heath
elder field
#

doubt in coding

somber heath
elder field
#

ohh, ok then continue

somber heath
#

Which is the purpose I am in it for.

somber heath
#

@tall latch Vinyl?

#

This probably won't work. If it does, a monkey's uncle am I.

#

🐒

#

I thought the bot would zap that.

somber heath
#

@craggy token Chat here when you're in voice.

craggy token
#

Ok

lunar pendant
#

red is a impostor

#

what did he just said?

short canopy
#

Soo any GUI framework in python guys!

lunar pendant
short canopy
#

Tkinter

#

Qt

#

Yeah ik all of those

somber heath
#

tkinter, kivy, pyqt5, something about bees

#

But I can't remember what.

#

Honeycomb?

craggy token
#

U play in LoL?

somber heath
#

Pygame...

short canopy
#

M all ready using tkinter m making a project with it a login system with a database then the main app xD

#

But i fell like I can't do anything i want

#

Tbh i can make it dynamic with my own skills

craggy token
#

Ok

somber heath
#

Flask, Django.

short canopy
#

Aaaah yeah flask and Django

#

Yeah yeah get it

#

But i think if i go and learn js and use electron js that's will be better with desktop apps!

#

Or i should go ahead and learn c++!

tall latch
#

fnsdinfks

#

fetched_list_of_crap

wooden hornet
digital jackal
#

yo guys

#

anyone got an idea of how do i use jupyter notebook?

#

im trying to use it for matplotlib

sonic hatch
#

@stoic cloud hello, still don't have the 50 msgs

#

so yeah, what are you up to?

#

ooh cool

#

nice, do you have like a working example or is it still in the early stages?

#

I'm just learning python, like more advanced but still not very expert or so

#

metaclasses, decorators etc

#

HAHAHA NICE

#

so if lives == 0, and then reset the lives right?

#

sure

#

btw I'm just spamming msgs to get to 50

#

so for how long have you been coding?

#

yeah nice

#

You interested in building games etc?

#

sure so like a side project

#

gotcha

#

Lets go

#

you mind sharing your code, like screen share?

#

unfortunate

#

I was sure you can go live, I've seen people live in here I think but have no idea how

#

perhaps a while back

#

just be active and answer questions, I think. Positive and helpful attitude

#

I'm like looking into networking (hacking you might say), databases and electronics using rasp pi and other stuff

#

yeah yeah

stoic cloud
#

Null byte

sonic hatch
#

Yeah already know him

#

I have like so so many channels that I'm subbed to and watch videos here and there

#

knowledge is slowly but surely building up

#

true, so now I'm just learning concepts using very easy examples from videos etc

#

and then I try to create like my own ways of using them

#

yeah I got my friend into python as well, he didnt like c++ but wanted to get into programming. So I recommended python

#

I'm also planning to learn C++ or C

#

also the thing is, I'm pretty sure that those are more like high mid level languages. So for example for ML they might be beneficial but am not sure.

#

and yeah not yet 50

#

words

#

also perhaps java

#

I haven't decide on my next language

#

I'm 16

#

you?

#

C++ is a compile language I've read so it's prob very useful with a high end lang like python

#

and yeah Jakub, yours?

slender apex
#

Guys is it illegal to write in other languages than english to the text channels?

stoic cloud
#

err its not illegal but its advised not to

slender apex
#

Oh okay thx

gentle flint
#

I mean, I'm not sure what you mean with illegal

#

You certainly won't be prosecuted under it by civil law

#

If you mean does it violate the server rules, rule 4 says please speak english to the best of your abilities since this is an english-speaking server

#

that should answer your question

zealous wave
whole bear
hallow warren
#

Conflicting orders is what caused HAL 9000 to go on a murderous rampage

hoary inlet
#

@vale oar

fathom brook
#

@hoary inlet

hoary inlet
#

I wrote a code if you could take a look and had any suggestions to shorten it

#
country.set_index('country',inplace=True)
class County():

    def __init__(self,name):
        self.name = name
  
    def xaxis(self):
        return country.loc[country.index.str.contains(self.name)]['date']

    def yaxis(self):
        return country.loc[country.index.str.contains(self.name)]['daily_vaccinations']

    def chart(self):
        plt.figure(figsize=(20,6)) 
        sb.barplot(country.loc[country.index.str.contains(self.name)]['date'],country.loc[country.index.str.contains(self.name)]['daily_vaccinations'])```
fathom brook
#

I'm not too familiar with pandas as seaborn. I'm actually in the process of learning more of it right now. I'm a django guy mostly

#

sry mna

hoary inlet
#

since you are on voice can you explain django to me

#

picked up the vaccine dataset

#

and tried to plot chart by country names

#

from kaggle

gentle flint
#

why not set this to a variable
country.loc[country.index.str.contains(self.name)]

hoary inlet
#

let me check

#

nah I have already tried it says object type none

gentle flint
#

put it under your def __init__

#

oh

#

oh?

#

that's strange

hoary inlet
gentle flint
#

uh

#

what is this precisely?
country.loc[country.index.str.contains(self.name)]

#

is it a country name?

hoary inlet
#

it filters out the country name from the list

#

let me check

gentle flint
#

what does it return

hoary inlet
#

I can't talk english well

gentle flint
#

a list, I'm guessing

#

also, luna, why don't you go voice-verify
then you'll be able to speak in vc

#

zafer, check this channel's description

#

so, luna, what does it return

#

is it a list?

hoary inlet
#

give me a minute

gentle flint
#

OK

hoary inlet
#

whatever variable I set it to under it returns variable is not defined

hoary inlet
gentle flint
hoary inlet
#

This guy 😏

gentle flint
#

o nice

hoary inlet
#

I am trying to get an idea of where I stand ?

gentle flint
#
country = pd.read_csv('country.csv')
country.set_index('country',inplace=True)
class County():

    def __init__(self,name):
        self.name = name
        self.myvar = country.loc[country.index.str.contains(self.name)]
  
    def xaxis(self):
        return self.myvar['date']

    def yaxis(self):
        return self.myvar['daily_vaccinations']

    def chart(self):
        plt.figure(figsize=(20,6)) 
        sb.barplot(self.myvar]['date'],self.myvar['daily_vaccinations'])
hoary inlet
gentle flint
#

why lol

#

is it too complicated?

#

I can explain it if you want

hoary inlet
#

nah I got the code

gentle flint
#

o nice

hoary inlet
#

so we add a new function chart

#

I can't figure out what self.myvar does

gentle flint
#

you add a new attribute to the class

#

one defined based on the other attribute, and the globals

#

mind, I haven't actually tried this out

#

all it should do is be equal to
country.loc[country.index.str.contains(self.name)]
so you don't have that long thing all over the place

hoary inlet
#

okay got it

gentle flint
#

obviously replace myvar with something more meaningful

hoary inlet
#

Added the index variable

#

and replaced the long line I was carrying around

gentle flint
#

mhm

hoary inlet
#

btw it is required to add self. in case of defining it under init ?

gentle flint
#

yeah, if you wanna call it in other functions in the same class
the only way you can do that is by inheriting from __init__
so you set attributes in __init__ then let other functions inherit the attributes

#

@dull sedge you can't speak 'cuz you're not voice verified
please don't constantly join and leave

hoary inlet
#

btw how do I shorten the date stamps on axis

gentle flint
#

huh?

hoary inlet
#

let me show you

gentle flint
#

sure

#

this is the quietest vc ever lol

dull sedge
#

I don't want to be toxit but hey

hoary inlet
gentle flint
hoary inlet
#

aargh it doesn't show the date

gentle flint
#

it does

#

but in black

hoary inlet
gentle flint
#

can you copy-paste your current code

hoary inlet
#
country.set_index('country',inplace=True)
class County():

    def __init__(self,name):
        self.name = name
        self.myvar = country.loc[country.index.str.contains(self.name)]
  
    def xaxis(self):
        return self.myvar['date']

    def yaxis(self):
        return self.myvar['daily_vaccinations']

    def chart(self):
        plt.figure(figsize=(20,6)) 
        sb.barplot(self.myvar['date'],self.myvar['daily_vaccinations'])```
#

it's yours lol

gentle flint
#

did you check if it works?

hoary inlet
#

yes, I ran it just now

gentle flint
#

gr8

#

rename myvar to something which actually says what it means, for starters; the longer you leave it, the more you'll have to rewrite

gentle flint
#

dn?

hoary inlet
#

changed it

gentle flint
#

ah

#

what's it now?

hoary inlet
#

country_name

gentle flint
hoary inlet
#

not a great net speed environment

gentle flint
#

anyway, you're printing self.country_name['date'] on the x axis

hoary inlet
#

yes

gentle flint
#

change that and you'll change what it displays

hoary inlet
#

yeah, but that will change the dates from the dataframe too, right ??

gentle flint
#

huh?

#

not sure what you mean with that

hoary inlet
#

I am selecting the dates column for it to select the dates, but what If I want it to show days instead of the date, so I have to create a new column for that ?

gentle flint
hoary inlet
#

nope

gentle flint
#

then maybe that's the first step

#

I assume you mean days of the week?

hoary inlet
gentle flint
#

Honestly, I don't know. I've never used pandas and it's 00:24 am, so I can't be bothered to go and find out now

#

but this sounds like something you can figure out yourself

hoary inlet
#

thanks for the help !!

gentle flint
#

hello buity

#

glhf luna

#

never needed to

hazy field
#

Umm hey, just a curiosity :)

gentle flint
#

not particularly tbh

#

he's been here since October lol

hazy field
#

Omg someone is counting

#

Yeah with some in and outs timeouts

gentle flint
#

anyway I think I'll be off

#

see y'all later

#

alligators

hazy field
#

Well I almost thought you cared now my world view is at ruins

#

;)

#

How do I join back voice chat ?

gentle flint
#

click it lol

hazy field
#

Haha

#

Hmmm

#

Let me start by burning your life - I'm not a big fan of python but I see it's shine in prototyping and testing

gentle flint
#

...wow

proud tangle
#

@whole bear The duration is two weeks regardless of what the bot dm says

hallow warren
#
whole bear
#

Hello guys

#

I am server muted

#

don't know why

#

when ever i join any voice channel it says you are supressed

#

yes i have a microphone connected

#

ohh ok ok

#

that suggestion was for me??

hallow warren
trail perch
#

Yow!

hallow warren
hallow warren
somber heath
#

So...giant mecha suit control interfaces.

#

Neat.

hallow warren
gentle flint
gentle flint
#

@jagged trail here

jagged trail
#

@gentle flint there?

gentle flint
#

no, there

jagged trail
#

over where?

gentle flint
#

right there

somber heath
#

Up.

jagged trail
#

underwear?

gentle flint
#

no, down

gentle flint
versed island
#

why the hell there so much buzz about no code platforms pithink

#

people using them should be punished under law ... so that they dont waste their time

#

@somber heath @gentle flint sup?

#

hmm

gentle flint
fallow shuttle
#

Hey i know this is Python discord but still can you help ? i am having some problems deploying my project on Github

#

nvm

somber heath
#

clip

lunar pendant
#

@somber heath hey mate

somber heath
#

Uuhg?

lunar pendant
somber heath
#

verbose

lunar pendant
#

oh

shadow trout
#

huh

lunar pendant
edgy ravine
#

hey guys im new to this server would anyone tell me how to start learning python cause im curious to learn but have no idea about any programming language in brief

somber heath
#

@edgy ravine Sure. :)

shadow trout
somber heath
#

@edgy ravine This Discord server is great for learning. Youtube is another.

edgy ravine
somber heath
#

@edgy ravine Corey Schafer and sentdex.

shadow trout
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

somber heath
#

Ta.

lunar pendant
edgy ravine
# somber heath Ta.

thanks a lot so how do i start is python easy cause i literally have no idea about programming im very new to this

somber heath
#

@edgy ravine There is always the internal python documentation via the help function, either invoked by itself as help() or by giving it an object. e.g. help("Hello")

edgy ravine
#

ok

#

if u dont mind it would be great if u would like to have a one on one vc with me that would be very helpfull

#

@somber heath

edgy ravine
#

yea btw deepak im a indian too

#

@somber heath yea

lunar pendant
edgy ravine
#

but i cant talk

#

idk whyy

#

@somber heath ohh ik

#

i did saw them

lunar pendant
edgy ravine
#

k deepak can u come vc personal with me tat would be great @lunar pendant

#

i sent u request

lunar pendant
#

and i am not sure how i ended up in this server

edgy ravine
#

ohh k even u r new here

lunar pendant
gentle flint
#

@edgy ravine if you wanna ask a question, just ask it

edgy ravine
#

how do i

gentle flint
#

no need to go DMing people

edgy ravine
#

kkk

#

@somber heath yes sir

gentle flint
#

there's lots of nice courses in

#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

shadow trout
#

i just look online for stuff i dont know

#

eh

gentle flint
#

^ same

edgy ravine
#

k thanks a lot @somber heath i would definetely do that

gentle flint
#

like generators lol

lunar pendant
#

@edgy ravine I do use python sometimes in competitive programming when i have to use big integers stuff

edgy ravine
#

ohh it means u know some programming @lunar pendant

lunar pendant
whole bear
#

Hi guys

shadow trout
#

yeah

#

show

edgy ravine
whole bear
#

Can somebody help me with requests after you done with @gentle flint

gentle flint
#
def fetcher(limit=50):
    session = requests.Session()

    # initially no pages have been fetched yet
    page = 0
    # and therefore no results
    num_results = 0
    # it is not yet known how many pages are available through pagination
    # so set it to 1 for now so we execute the first pass
    # we'll then use the first request headers to get the actual number
    num_pages = 1

    while page <= num_pages:
        r_fpdb = session.get("https://api.flightplandatabase.com/search/plans", params={"fromICAO":"EHAM", "toICAO":"KJFK", "page": page, "limit": 100}, auth=HTTPBasicAuth(APIKEY, None))
        num_pages = int(r_fpdb.headers['X-Page-Count'])
        for e in r_fpdb.json():
            yield e
            num_results += 1
            if num_results == limit:
                # Break the inner loop...
                break
        else:
            page += 1
            # Continue if the inner loop wasn't broken.
            continue
        # Inner loop was broken, break the outer.
        break

    print(page+1)
whole bear
#

okay that would be great!

edgy ravine
whole bear
#

i tried noone is answering

lunar pendant
#

this is what i did

#

because i mostly do cp

#

and c++ is the best language for cp

gentle flint
#

cp?

edgy ravine
lunar pendant
#

but that's pretty much all

#

that i could tell you

shadow trout
lunar pendant
#

Competitive programming is a mind sport usually held over the Internet or a local network, involving participants trying to program according to provided specifications. Contestants are referred to as sport programmers. Competitive programming is recognized and supported by several multinational software and Internet companies, such as Google an...

gentle flint
#

o

whole bear
lunar pendant
whole bear
#

why? lol

lunar pendant
#

and i am doing cp for just last 3 months

whole bear
#

i started python in 2nd half of Sep

lunar pendant
#

now i am practicing reguarly

#

to get back in shape

#

@whole bear If you want then this are my profile on some cp websites

whole bear
#

Do you have codeforces?

lunar pendant
gentle flint
#

Quiche ( KEESH) is a French tart consisting of pastry crust filled with savoury custard and pieces of cheese, meat, seafood or vegetables. The best-known variant is quiche Lorraine, which includes lardons or bacon. Quiche can be served hot or cold. It is popular worldwide.

whole bear
#

Do you know how to find someones data through stackoverflow?

#

I have a guy i need to contact

#

or github

#

nah

#

i need help with his library

lunar pendant
#

@whole bear do you do cp?

somber heath
#
import requests

urls = ['http://localhost/', 'http://127.0.0.1/']
def my_generator(result):
    yield None

def func():
        results = [requests.get(url) for url in urls]
        results = [each for each in results if each.ok]
        for result in results:
            yield result, my_generator(result)```
gentle flint
#

for some reason this name sounds like "cat salami" to me
https://it.wikipedia.org/wiki/Salame_Felino

Il salame Felino è un salame prodotto storicamente nella cittadina di Felino (da cui il nome) e in alcuni comuni limitrofi, come Sala Baganza e Langhirano, tutti in provincia di Parma. Avendo ottenuto la certificazione europea di "Indicazione Geografica Protetta", questo salume è tutelato da contraffazioni.

#

Feline salami, so to speak

whole bear
whole bear
#

im a noob

lunar pendant
somber heath
#

@shadow trout Just skeleton code.

#

😄

#

But thank you.

whole bear
#

brb

bronze silo
#

hello everyone

lunar pendant
#

@whole bear Are you going to participate in google hashcode 2021?

hushed elm
gentle flint
bronze silo
#

oh

hushed elm
#

mix eggs with time -> big bang universe

lunar pendant
#

master chef ( fill your country name)

gentle flint
#

an exploding egg

#

O_O

hushed elm
#

master chef romania

gentle flint
#

master bucatar roman

bronze silo
#

LOL

#

😆

hushed elm
#

Romania Team Represent

somber heath
#

bb...s-ish.

bronze silo
#

wow

candid venture
#

@rugged root @faint ermine u guys gonna stay there or gonna drag me in there?

faint ermine
#

@candid venture its a staff meeting.

candid venture
#

@rugged root can i get video perms? i need help from verbose

hushed elm
candid venture
zealous wave
candid venture
stoic ore
#

hi

zealous wave
candid venture
#

#memes

gentle flint
zealous wave
#

there isnt one @candid venture

frozen latch
#

hi

candid venture
gentle flint
#

yeah, sure
give it a go

whole bear
#

Something Went Wrong, Try Again Later!

candid venture
#

give it a go

hushed elm
candid venture
hushed elm
#

there you go big boy

candid venture
#

NO

#

NO NO NO

#

im a big boi

#

i can do it by my self

hushed elm
candid venture
#

:C

candid venture
#

dont u judge me

#

qip

hushed elm
#

ur judging urself

#

boyo

candid venture
#

ay muchacho

#

im the capitan of my arch

hushed elm
#

big boi

candid venture
stuck furnace
#

Yeah, I messed that up 😄

hushed elm
#

i use arch linux

#

hey guys

#

i use arch linux

stuck furnace
#

I use mac. Completely locked into the ecosystem. I'm pretty sure apple owns my soul by this point lemon_pensive

zealous wave
#

F

faint ermine
icy axle
#

loading Downloading RAM

hushed elm
#

:loading:

#

😦

candid venture
olive hedge
icy axle
zealous wave
#

🪟s

olive hedge
icy axle