How to remove project in PyCharm?

Just follow these steps in order. They assume you currently have the project open in a PyCharm window: Close your project by clicking on File -> Close Project Locate your project in the PyCharm file directory Delete your project’s directory I agree that PyCharm’s handling of what should be a very simple procedure is crappy. … Read more

Scatter plot colorbar – Matplotlib

You’re passing in specific rgb values, so matplotlib can’t construct a colormap, because it doesn’t know how it relates to your original data. Instead of mapping the values to RGB colors, let scatter handle that for you. Instead of: Do: (Just pass in to c what you were originally passing into plt.cm.jet.) Then you’ll be … Read more

Windows path in Python

you can use always: this works both in linux and windows. Other posibility is if you have problems with some names you can also try raw string literals: however best practice is to use the os.path module functions that always select the correct configuration for your OS: From python 3.4 you can also use the … Read more

How to start from second index for for-loop

First thing is to remember that python uses zero indexing. You can iterate throught the list except using the range function to get the indexes of the items you want or slices to get the elements. What I think is becoming confusing here is that in your example, the values and the indexes are the … Read more