#๐Ÿ”’ Assignemnt

42 messages ยท Page 1 of 1 (latest)

drowsy vineBOT
#

@wanton furnace

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sweet tiger
#

What do tou struggle with ?

wanton furnace
#

The codeing part

#

I am new to this and it for class

sweet tiger
#

What did you try ?

wanton furnace
#

population.with_columns("time", np.arange(1970,2021)), "population_total", population_total

sweet tiger
#

Why do you think it does not work ?

wanton furnace
#

I have no idea that why im asking for help

#

And also it doesn't print out the tbl

sweet tiger
#

Okay, so what do you think you are doing with this line ?

sweet tiger
#

And you need to assign this table to a variable named b_pop, as per the assignement

wanton furnace
#

Trying to create a tbl with time with 1970-2020 and population total

sweet tiger
#

I understood but specifically, why did you use this method, with these arguments ?

wanton furnace
#

Im sorry if this sound dumb but isnt it what it asking for

sweet tiger
#

What do you think with_columns does ?

wanton furnace
#

Creating a tbl with name colums and their values

sweet tiger
#

I'll let you find some documentation to understand what this method do

wanton furnace
#

I python reference sheet the prof print out

sweet tiger
#

What you need is to filter on date and geo, and select two columns from the 3

sweet tiger
wanton furnace
#

?

#

No

#

How should it look like tbl.column and .select and np.arange

sweet tiger
#

Idk what library you are using, but I would tell you to look for this library's documentation on how to select a column and filter

wanton furnace
#

wait I just used .drop

sweet tiger
#

Are you using pandas ?

wanton furnace
#

no python

sweet tiger
#

python alone do not open tables, you need a library for that

#

The thing you import at the beginning of the file

#

Or the software you are using to code idk

wanton furnace
#

Im working on jupyter the prof had already set everything up just need to plug a code in

sweet tiger
#

Okay so look at the first lines when you see imports

wanton furnace
#

I ran this already

sweet tiger
#

Yeah there is something else too

wanton furnace
#

?

sweet tiger
#

That's not what you use to read table

#

This is to grade a notebook

drowsy vineBOT
#
Python help channel closed using Discord native close action

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.