Amateur Teenage coder /u/Happy-Gam3r-4543 Python Education

Amateur Teenage coder /u/Happy-Gam3r-4543 Python Education

Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do?

submitted by /u/Happy-Gam3r-4543
[link] [comments]

​r/learnpython Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do? submitted by /u/Happy-Gam3r-4543 [link] [comments] 

Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do?

submitted by /u/Happy-Gam3r-4543
[link] [comments]  Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do? submitted by /u/Happy-Gam3r-4543 [link] [comments]

Read more

Why does matplotlib.pyplot works but not matplotlib.pyplot.plot()? /u/codeforces_help Python Education

Why does matplotlib.pyplot works but not matplotlib.pyplot.plot()? /u/codeforces_help Python Education

Fails : AttributeError: module 'matplotlib' has no attribute 'pyplot'

import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) 

Succeeds:

import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) 

What is the difference between the two?

Strangely if I run the second piece of code first and then the first piece then it doesn’t complain.

submitted by /u/codeforces_help
[link] [comments]

​r/learnpython Fails : AttributeError: module ‘matplotlib’ has no attribute ‘pyplot’ import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) Succeeds: import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) What is the difference between the two? Strangely if I run the second piece of code first and then the first piece then it doesn’t complain. submitted by /u/codeforces_help [link] [comments] 

Fails : AttributeError: module 'matplotlib' has no attribute 'pyplot'

import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) 

Succeeds:

import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) 

What is the difference between the two?

Strangely if I run the second piece of code first and then the first piece then it doesn’t complain.

submitted by /u/codeforces_help
[link] [comments]  Fails : AttributeError: module ‘matplotlib’ has no attribute ‘pyplot’ import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) Succeeds: import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) What is the difference between the two? Strangely if I run the second piece of code first and then the first piece then it doesn’t complain. submitted by /u/codeforces_help [link] [comments]

Read more

How to make pip by using tkinter /u/Jaded-Supermarket247 Python Education

How to make pip by using tkinter /u/Jaded-Supermarket247 Python Education

So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter

submitted by /u/Jaded-Supermarket247
[link] [comments]

​r/learnpython So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter submitted by /u/Jaded-Supermarket247 [link] [comments] 

So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter

submitted by /u/Jaded-Supermarket247
[link] [comments]  So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter submitted by /u/Jaded-Supermarket247 [link] [comments]

Read more

3D of Elevation in Basemap ? /u/eidrisov Python Education

3D of Elevation in Basemap ? /u/eidrisov Python Education

Hi everyone!

I have just discovered Basemap and I have a few questions:

  1. Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above.

    from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np

    map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123)

    ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray()

    map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’))

    map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5)

    plt.show()

  2. Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ?

Thanks in advance for any help!

submitted by /u/eidrisov
[link] [comments]

​r/learnpython Hi everyone! I have just discovered Basemap and I have a few questions: Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above. from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123) ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray() map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’)) map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5) plt.show() Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ? Thanks in advance for any help! submitted by /u/eidrisov [link] [comments] 

Hi everyone!

I have just discovered Basemap and I have a few questions:

  1. Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above.

    from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np

    map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123)

    ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray()

    map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’))

    map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5)

    plt.show()

  2. Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ?

Thanks in advance for any help!

submitted by /u/eidrisov
[link] [comments]  Hi everyone! I have just discovered Basemap and I have a few questions: Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above. from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123) ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray() map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’)) map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5) plt.show() Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ? Thanks in advance for any help! submitted by /u/eidrisov [link] [comments]

Read more

Need help scraping a website for information in a chart /u/Complex_Phrase7678 Python Education

Need help scraping a website for information in a chart /u/Complex_Phrase7678 Python Education

Hey guys,
I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV.

How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT.

Website: idexonline.com/diamond_prices_index

If this isn’t relevant to the sub, please let me know and I will delete.

Thank you!

submitted by /u/Complex_Phrase7678
[link] [comments]

​r/learnpython Hey guys, I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV. How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT. Website: idexonline.com/diamond_prices_index If this isn’t relevant to the sub, please let me know and I will delete. Thank you! submitted by /u/Complex_Phrase7678 [link] [comments] 

Hey guys,
I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV.

How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT.

Website: idexonline.com/diamond_prices_index

If this isn’t relevant to the sub, please let me know and I will delete.

Thank you!

submitted by /u/Complex_Phrase7678
[link] [comments]  Hey guys, I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV. How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT. Website: idexonline.com/diamond_prices_index If this isn’t relevant to the sub, please let me know and I will delete. Thank you! submitted by /u/Complex_Phrase7678 [link] [comments]

Read more

What should i do, please help /u/Jazzlike-Life2321 Python Education

What should i do, please help /u/Jazzlike-Life2321 Python Education

Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them.

for example:

print(“hello world”)

when I type that it automatically closes them but then i type inside and it comes out like this:

print(“hello world

if anyone could help me i would really apreciate it

ps: please dumb down the answers because i am not very smart and am still learning thank you.

submitted by /u/Jazzlike-Life2321
[link] [comments]

​r/learnpython Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them. for example: print(“hello world”) when I type that it automatically closes them but then i type inside and it comes out like this: print(“hello world if anyone could help me i would really apreciate it ps: please dumb down the answers because i am not very smart and am still learning thank you. submitted by /u/Jazzlike-Life2321 [link] [comments] 

Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them.

for example:

print(“hello world”)

when I type that it automatically closes them but then i type inside and it comes out like this:

print(“hello world

if anyone could help me i would really apreciate it

ps: please dumb down the answers because i am not very smart and am still learning thank you.

submitted by /u/Jazzlike-Life2321
[link] [comments]  Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them. for example: print(“hello world”) when I type that it automatically closes them but then i type inside and it comes out like this: print(“hello world if anyone could help me i would really apreciate it ps: please dumb down the answers because i am not very smart and am still learning thank you. submitted by /u/Jazzlike-Life2321 [link] [comments]

Read more