Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Trying to set color preferences in VS Code
Post: RE: Trying to set color preferences in VS Code

I made these changes but am still unable to change color theme.
Truman Bar 5 2,909 Sep-12-2021, 04:43 PM
    Thread: Trying to set color preferences in VS Code
Post: RE: Trying to set color preferences in VS Code

https://i.postimg.cc/pd8gNqwC/vscode.png Still don't understand what should be added for python. Google didn't give me the answer.
Truman Bar 5 2,909 Sep-02-2021, 06:58 PM
    Thread: Trying to set color preferences in VS Code
Post: Trying to set color preferences in VS Code

When I try to change Color Theme in VS Code receive a message "unable to write into user settings" When I open settings the path should be added after "python" but failed to do that. Advice is apprec...
Truman Bar 5 2,909 Aug-29-2021, 04:56 PM
    Thread: A deciphering problem
Post: RE: A deciphering problem

I started working on another problem in the meantime, will get back to this eventually but not sure when. I apologize if disappointed anyone. And I'm following a book, not the real teacher.
Truman Homework 25 8,345 Aug-21-2021, 03:28 PM
    Thread: A deciphering problem
Post: RE: A deciphering problem

Yoriz, I'll need to grasp some more knowledge to be able to catch up with your code. Thank you.
Truman Homework 25 8,345 Aug-16-2021, 07:53 PM
    Thread: A deciphering problem
Post: A deciphering problem

Break the following ciphertext, decrypting one line at a time because each line has a different key. Remember to escape any quote characters: qeFIP?eGSeECNNS, 5coOMXXcoPSZIWoQI, avnl1olyD4l'ylDohww6Dh...
Truman Homework 25 8,345 Aug-14-2021, 08:35 PM
    Thread: reindex()
Post: RE: reindex()

Yes, as the error message showed. Strange, but I relatively often see mistakes in programming books.
Truman Data Science 2 3,105 Jul-17-2020, 10:21 PM
    Thread: reindex()
Post: reindex()

import pandas as pd import numpy as np index = [('California', 2000), ('California', 2010), ('New York', 2000), ('New York', 2010), ('Texas', 2000), ('Texas', 2010)] populations = [3...
Truman Data Science 2 3,105 Jul-11-2020, 09:26 PM
    Thread: Pandas DataFrame visual
Post: RE: Pandas DataFrame visual

Unfortunately, I don't understand your last comment. Don't see a difference between the two images. After adding print('-' * 50) columns are aligned. Not sure how this code exactly solved the issue.
Truman Data Science 8 3,851 Jul-08-2020, 08:38 PM
    Thread: Pandas DataFrame visual
Post: RE: Pandas DataFrame visual

After renaming there is again a problem with alignining Output:States area pop 0 California 423967 38332521 1 Texas 695662 26448193 2 New York 141297 19651127 3 Florida 1...
Truman Data Science 8 3,851 Jul-07-2020, 01:55 PM
    Thread: Pandas DataFrame visual
Post: RE: Pandas DataFrame visual

now I get Output:index area pop 0 California 423967 38332521 1 Texas 695662 26448193 2 New York 141297 19651127 3 Florida 170312 19552860 4 Illinois 149995 12882135...
Truman Data Science 8 3,851 Jul-06-2020, 09:34 PM
    Thread: Pandas DataFrame visual
Post: Pandas DataFrame visual

import pandas as pd area = pd.Series({'California': 423967, 'Texas': 695662, 'New York': 141297, 'Florida': 170312, 'Illinois': 149995}) pop = pd.Series({'Californ...
Truman Data Science 8 3,851 Jul-04-2020, 10:12 PM
    Thread: Computing the distance between each pair of points
Post: RE: Computing the distance between each pair of po...

Yes, I forgot what shapeis for. I definitely have to be more careful and focused.
Truman Data Science 11 4,182 Jun-20-2020, 01:15 PM
    Thread: Computing the distance between each pair of points
Post: RE: Computing the distance between each pair of po...

I'm now reading docs that you provided and smth doesn't work well. import numpy as np x = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) x[:,np.newaxis,:,:].shapeError:IndexError ...
Truman Data Science 11 4,182 Jun-18-2020, 07:31 PM
    Thread: Computing the distance between each pair of points
Post: RE: Computing the distance between each pair of po...

Yes, it's just that I still don't understand the contest...
Truman Data Science 11 4,182 Jun-18-2020, 05:02 PM
    Thread: Computing the distance between each pair of points
Post: RE: Computing the distance between each pair of po...

It looks that this operation adds an axis to my array, turning it from 2D into 3D X[:, np.newaxis, :]Output:array([[[0.37454012, 0.95071431]], [[0.73199394, 0.59865848]], [[0.15601864,...
Truman Data Science 11 4,182 Jun-17-2020, 10:29 PM
    Thread: Computing the distance between each pair of points
Post: RE: Computing the distance between each pair of po...

This last example of yours is perfectly clear. Now I'll have to go back to the one from the book. But first to read given docs.
Truman Data Science 11 4,182 Jun-17-2020, 08:04 PM
    Thread: Computing the distance between each pair of points
Post: RE: Computing the distance between each pair of po...

Yes, I know what newaxis stands for but these two colons in each bracket are making me headache. Thank you anyway. I asked the same question on the biggest python facebook group and noone was able to ...
Truman Data Science 11 4,182 Jun-17-2020, 07:23 PM
    Thread: NameError: name 'rand' is not defined
Post: RE: NameError: name 'rand' is not defined

(Jun-17-2020, 07:12 PM)buran Wrote: (Jun-17-2020, 07:10 PM)Truman Wrote: Yeah, I'll have to ask my numerologist what 42 represents... (Jun-17-2020, 07:09 PM)buran Wrote: You know, 42 - The Answer...
Truman Data Science 7 6,810 Jun-17-2020, 07:14 PM
    Thread: NameError: name 'rand' is not defined
Post: RE: NameError: name 'rand' is not defined

By the way, is there a chance that you also take a look at the topic "Computing the distance between each pair of points". These double colons are still making me headache. (Jun-17-2020, 07:09 PM)bu...
Truman Data Science 7 6,810 Jun-17-2020, 07:10 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020