Good math equation evaluation module? /u/v4ntagee Python Education

Good math equation evaluation module? /u/v4ntagee Python Education

I need a good python module to evaluate math equations, one that on for example 99^99^99 doesn’t crash my entire server, but just returns ‘Infinity’ or an simple error.

I’ve looked around a bit, but couldn’t find anything,

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

​r/learnpython I need a good python module to evaluate math equations, one that on for example 99^99^99 doesn’t crash my entire server, but just returns ‘Infinity’ or an simple error. I’ve looked around a bit, but couldn’t find anything, submitted by /u/v4ntagee [link] [comments] 

I need a good python module to evaluate math equations, one that on for example 99^99^99 doesn’t crash my entire server, but just returns ‘Infinity’ or an simple error.

I’ve looked around a bit, but couldn’t find anything,

submitted by /u/v4ntagee
[link] [comments]  I need a good python module to evaluate math equations, one that on for example 99^99^99 doesn’t crash my entire server, but just returns ‘Infinity’ or an simple error. I’ve looked around a bit, but couldn’t find anything, submitted by /u/v4ntagee [link] [comments]

Read more

migrating whole Python environment to new Windows install? /u/citamrac Python Education

migrating whole Python environment to new Windows install? /u/citamrac Python Education

Hello, I am using Windows 11.

I have installed a lot of Python dependencies that I need for a particular Python script, installed by a mix of pip, Visual Studio, as well as simply placing the required files in the same directory as the Python script itself… Some of the installation steps were quite convoluted, requiring a very specific installation sequence of specific versions of libraries, and I would really like to avoid having to do it again.

But I am facing the prospect of having to reinstall Windows, is there a way to ‘save’ my entire Python environment onto some external storage medium, such that I can copy it to a new Windows install (after the prerequisite system components such as drivers and SDKs are installed) , and have it continue working?

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

​r/learnpython Hello, I am using Windows 11. I have installed a lot of Python dependencies that I need for a particular Python script, installed by a mix of pip, Visual Studio, as well as simply placing the required files in the same directory as the Python script itself… Some of the installation steps were quite convoluted, requiring a very specific installation sequence of specific versions of libraries, and I would really like to avoid having to do it again. But I am facing the prospect of having to reinstall Windows, is there a way to ‘save’ my entire Python environment onto some external storage medium, such that I can copy it to a new Windows install (after the prerequisite system components such as drivers and SDKs are installed) , and have it continue working? submitted by /u/citamrac [link] [comments] 

Hello, I am using Windows 11.

I have installed a lot of Python dependencies that I need for a particular Python script, installed by a mix of pip, Visual Studio, as well as simply placing the required files in the same directory as the Python script itself… Some of the installation steps were quite convoluted, requiring a very specific installation sequence of specific versions of libraries, and I would really like to avoid having to do it again.

But I am facing the prospect of having to reinstall Windows, is there a way to ‘save’ my entire Python environment onto some external storage medium, such that I can copy it to a new Windows install (after the prerequisite system components such as drivers and SDKs are installed) , and have it continue working?

submitted by /u/citamrac
[link] [comments]  Hello, I am using Windows 11. I have installed a lot of Python dependencies that I need for a particular Python script, installed by a mix of pip, Visual Studio, as well as simply placing the required files in the same directory as the Python script itself… Some of the installation steps were quite convoluted, requiring a very specific installation sequence of specific versions of libraries, and I would really like to avoid having to do it again. But I am facing the prospect of having to reinstall Windows, is there a way to ‘save’ my entire Python environment onto some external storage medium, such that I can copy it to a new Windows install (after the prerequisite system components such as drivers and SDKs are installed) , and have it continue working? submitted by /u/citamrac [link] [comments]

Read more

Hover tooltip without turning into a property /u/Maleficent_Height_49 Python Education

Hover tooltip without turning into a property /u/Maleficent_Height_49 Python Education

I use CursorAI’s IDE.

I usually make attributes understandable by turning them into a property, which allows me to add a docstring, which will display on hover.
Example:

def __init__(self): self._vague_attribute = anything() @property def vague_attribute(self) -> any: """ This is what I do... """ return self._vague_attribute 

Slightly inconvenient and increases visual load.

Is there an alternative?

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

​r/learnpython I use CursorAI’s IDE. I usually make attributes understandable by turning them into a property, which allows me to add a docstring, which will display on hover. Example: def __init__(self): self._vague_attribute = anything() @property def vague_attribute(self) -> any: “”” This is what I do… “”” return self._vague_attribute Slightly inconvenient and increases visual load. Is there an alternative? submitted by /u/Maleficent_Height_49 [link] [comments] 

I use CursorAI’s IDE.

I usually make attributes understandable by turning them into a property, which allows me to add a docstring, which will display on hover.
Example:

def __init__(self): self._vague_attribute = anything() @property def vague_attribute(self) -> any: """ This is what I do... """ return self._vague_attribute 

Slightly inconvenient and increases visual load.

Is there an alternative?

submitted by /u/Maleficent_Height_49
[link] [comments]  I use CursorAI’s IDE. I usually make attributes understandable by turning them into a property, which allows me to add a docstring, which will display on hover. Example: def __init__(self): self._vague_attribute = anything() @property def vague_attribute(self) -> any: “”” This is what I do… “”” return self._vague_attribute Slightly inconvenient and increases visual load. Is there an alternative? submitted by /u/Maleficent_Height_49 [link] [comments]

Read more

Converting dataframe for heatmap /u/NitPo Python Education

Converting dataframe for heatmap /u/NitPo Python Education

I need to manipulate a dataframe to rapresent data in a specific way

ra={"smiles":["a","b","c","d"],"d1":[1,2,3,4],"d2":[5,6,7,8],"d3":[9,10,11,12]} ra=pd.DataFrame(data=ra) print(ra.head()) result = ra.pivot(index='smiles', columns='d1', values=['d1',"d2","d3"]) sns.heatmap(result, annot=True, fmt="g", cmap='viridis') plt.show() 

the resulting heatmap should have smiles as index and in each row the values in the same position in d1,d2,d3 as in the scheme below

a d1(0) d2(O) d3(0)

b d1(1) d2(1) d3(1)

c d1(2) d2(2) d3(2)

“d1” “d2” “d3”

I don’t understand how to correctly use pivot/heatmap

Thanks for any response!

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

​r/learnpython I need to manipulate a dataframe to rapresent data in a specific way ra={“smiles”:[“a”,”b”,”c”,”d”],”d1″:[1,2,3,4],”d2″:[5,6,7,8],”d3″:[9,10,11,12]} ra=pd.DataFrame(data=ra) print(ra.head()) result = ra.pivot(index=’smiles’, columns=’d1′, values=[‘d1′,”d2″,”d3″]) sns.heatmap(result, annot=True, fmt=”g”, cmap=’viridis’) plt.show() the resulting heatmap should have smiles as index and in each row the values in the same position in d1,d2,d3 as in the scheme below a d1(0) d2(O) d3(0) b d1(1) d2(1) d3(1) c d1(2) d2(2) d3(2) “d1” “d2” “d3” I don’t understand how to correctly use pivot/heatmap Thanks for any response! submitted by /u/NitPo [link] [comments] 

I need to manipulate a dataframe to rapresent data in a specific way

ra={"smiles":["a","b","c","d"],"d1":[1,2,3,4],"d2":[5,6,7,8],"d3":[9,10,11,12]} ra=pd.DataFrame(data=ra) print(ra.head()) result = ra.pivot(index='smiles', columns='d1', values=['d1',"d2","d3"]) sns.heatmap(result, annot=True, fmt="g", cmap='viridis') plt.show() 

the resulting heatmap should have smiles as index and in each row the values in the same position in d1,d2,d3 as in the scheme below

a d1(0) d2(O) d3(0)

b d1(1) d2(1) d3(1)

c d1(2) d2(2) d3(2)

“d1” “d2” “d3”

I don’t understand how to correctly use pivot/heatmap

Thanks for any response!

submitted by /u/NitPo
[link] [comments]  I need to manipulate a dataframe to rapresent data in a specific way ra={“smiles”:[“a”,”b”,”c”,”d”],”d1″:[1,2,3,4],”d2″:[5,6,7,8],”d3″:[9,10,11,12]} ra=pd.DataFrame(data=ra) print(ra.head()) result = ra.pivot(index=’smiles’, columns=’d1′, values=[‘d1′,”d2″,”d3″]) sns.heatmap(result, annot=True, fmt=”g”, cmap=’viridis’) plt.show() the resulting heatmap should have smiles as index and in each row the values in the same position in d1,d2,d3 as in the scheme below a d1(0) d2(O) d3(0) b d1(1) d2(1) d3(1) c d1(2) d2(2) d3(2) “d1” “d2” “d3” I don’t understand how to correctly use pivot/heatmap Thanks for any response! submitted by /u/NitPo [link] [comments]

Read more

I have developed a website based on python /u/AdamLeeeeeee Python Education

I have developed a website based on python /u/AdamLeeeeeee Python Education

This is a web which can tell the motion feature of a Spotify playlist. As I used the database to get the lyrics, it may be more accurate for the old classic songs than the new ones. Here is the link: https://playlistmotion-042bbfcb5ee1.herokuapp.com

If you like the web, you can star my GitHub repository. The web is totally open source.

Link: GitHub.com/Adam-Lee-ZZ/playlist-motion

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

​r/learnpython This is a web which can tell the motion feature of a Spotify playlist. As I used the database to get the lyrics, it may be more accurate for the old classic songs than the new ones. Here is the link: https://playlistmotion-042bbfcb5ee1.herokuapp.com If you like the web, you can star my GitHub repository. The web is totally open source. Link: GitHub.com/Adam-Lee-ZZ/playlist-motion submitted by /u/AdamLeeeeeee [link] [comments] 

This is a web which can tell the motion feature of a Spotify playlist. As I used the database to get the lyrics, it may be more accurate for the old classic songs than the new ones. Here is the link: https://playlistmotion-042bbfcb5ee1.herokuapp.com

If you like the web, you can star my GitHub repository. The web is totally open source.

Link: GitHub.com/Adam-Lee-ZZ/playlist-motion

submitted by /u/AdamLeeeeeee
[link] [comments]  This is a web which can tell the motion feature of a Spotify playlist. As I used the database to get the lyrics, it may be more accurate for the old classic songs than the new ones. Here is the link: https://playlistmotion-042bbfcb5ee1.herokuapp.com If you like the web, you can star my GitHub repository. The web is totally open source. Link: GitHub.com/Adam-Lee-ZZ/playlist-motion submitted by /u/AdamLeeeeeee [link] [comments]

Read more

Can you help me with this error? /u/Ronanxa Python Education

Can you help me with this error? /u/Ronanxa Python Education

Cannot set up a python SDK at Python 3.13 (PythonProject1) (C:/Users/USER1/PycharmProjects/PythonProject1/.venv/Scripts/python.exe). The SDK seems invalid.

I get this error constantly even tho I use 3.9 as my interpeter. I deleted all the other python versions but this still pops out whenever I create a new project can you help me please..

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

​r/learnpython Cannot set up a python SDK at Python 3.13 (PythonProject1) (C:/Users/USER1/PycharmProjects/PythonProject1/.venv/Scripts/python.exe). The SDK seems invalid. I get this error constantly even tho I use 3.9 as my interpeter. I deleted all the other python versions but this still pops out whenever I create a new project can you help me please.. submitted by /u/Ronanxa [link] [comments] 

Cannot set up a python SDK at Python 3.13 (PythonProject1) (C:/Users/USER1/PycharmProjects/PythonProject1/.venv/Scripts/python.exe). The SDK seems invalid.

I get this error constantly even tho I use 3.9 as my interpeter. I deleted all the other python versions but this still pops out whenever I create a new project can you help me please..

submitted by /u/Ronanxa
[link] [comments]  Cannot set up a python SDK at Python 3.13 (PythonProject1) (C:/Users/USER1/PycharmProjects/PythonProject1/.venv/Scripts/python.exe). The SDK seems invalid. I get this error constantly even tho I use 3.9 as my interpeter. I deleted all the other python versions but this still pops out whenever I create a new project can you help me please.. submitted by /u/Ronanxa [link] [comments]

Read more

Ask Anything Monday – Weekly Thread /u/AutoModerator Python Education

Ask Anything Monday – Weekly Thread /u/AutoModerator Python Education

Welcome to another /r/learnPython weekly “Ask Anything* Monday” thread

Here you can ask all the questions that you wanted to ask but didn’t feel like making a new thread.

* It’s primarily intended for simple questions but as long as it’s about python it’s allowed.

If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.

Rules:

  • Don’t downvote stuff – instead explain what’s wrong with the comment, if it’s against the rules “report” it and it will be dealt with.
  • Don’t post stuff that doesn’t have absolutely anything to do with python.
  • Don’t make fun of someone for not knowing something, insult anyone etc – this will result in an immediate ban.

That’s it.

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

​r/learnpython Welcome to another /r/learnPython weekly “Ask Anything* Monday” thread Here you can ask all the questions that you wanted to ask but didn’t feel like making a new thread. * It’s primarily intended for simple questions but as long as it’s about python it’s allowed. If you have any suggestions or questions about this thread use the message the moderators button in the sidebar. Rules: Don’t downvote stuff – instead explain what’s wrong with the comment, if it’s against the rules “report” it and it will be dealt with. Don’t post stuff that doesn’t have absolutely anything to do with python. Don’t make fun of someone for not knowing something, insult anyone etc – this will result in an immediate ban. That’s it. submitted by /u/AutoModerator [link] [comments] 

Welcome to another /r/learnPython weekly “Ask Anything* Monday” thread

Here you can ask all the questions that you wanted to ask but didn’t feel like making a new thread.

* It’s primarily intended for simple questions but as long as it’s about python it’s allowed.

If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.

Rules:

  • Don’t downvote stuff – instead explain what’s wrong with the comment, if it’s against the rules “report” it and it will be dealt with.
  • Don’t post stuff that doesn’t have absolutely anything to do with python.
  • Don’t make fun of someone for not knowing something, insult anyone etc – this will result in an immediate ban.

That’s it.

submitted by /u/AutoModerator
[link] [comments]  Welcome to another /r/learnPython weekly “Ask Anything* Monday” thread Here you can ask all the questions that you wanted to ask but didn’t feel like making a new thread. * It’s primarily intended for simple questions but as long as it’s about python it’s allowed. If you have any suggestions or questions about this thread use the message the moderators button in the sidebar. Rules: Don’t downvote stuff – instead explain what’s wrong with the comment, if it’s against the rules “report” it and it will be dealt with. Don’t post stuff that doesn’t have absolutely anything to do with python. Don’t make fun of someone for not knowing something, insult anyone etc – this will result in an immediate ban. That’s it. submitted by /u/AutoModerator [link] [comments]

Read more