Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: sort values of a column pandas
Post: RE: sort values of a column pandas

D = pd.read_csv('sort.csv') E = pd.DataFrame(D) print(E[E['A'] < 0]) print(E[E['A'] > 0])
aankrose Data Science 2 2,501 Oct-21-2019, 04:24 PM
    Thread: Getting Unique values from LISTS
Post: RE: Getting Unique values from LISTS

import urllib3 from bs4 import BeautifulSoup import requests server_name="https:***********************************************" urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning ...
aankrose General Coding Help 2 2,245 Oct-17-2019, 05:33 PM
    Thread: Getting Unique values from LISTS
Post: Getting Unique values from LISTS

#I wrote a program that come as a LIST output like below ['scext', '80.0'] ['scext', 'COLFUJDX440_DS11'] ['scext', 'Hard disk 1'] ['scext', '100.0'] ['scext', 'COLFUJDX440_DS11'] ['scext', 'Hard dis...
aankrose General Coding Help 2 2,245 Oct-16-2019, 08:37 PM
    Thread: Better Coding
Post: RE: Better Coding

(Jul-30-2019, 03:46 PM)perfringo Wrote: (Jul-30-2019, 01:43 PM)aankrose Wrote: Please help me to make this code more than what i wrote, thanks What does 'more' mean? [/quote] Hello perfringo What...
aankrose General Coding Help 3 2,084 Jul-30-2019, 04:22 PM
    Thread: Better Coding
Post: Better Coding

import sys rows=colcnt=11 dotcnt=center=(rows-1) for cnt in range(1,(rows+1)): print("".ljust(dotcnt,'.'),end='') for c in range(dotcnt,colcnt): print ((cnt%10),end='') cnt=cnt+1 if(c <...
aankrose General Coding Help 3 2,084 Jul-30-2019, 01:43 PM
    Thread: Please help coding
Post: RE: Please help coding

You both made me to feel how dum i am , Thank you nilamo & perfringo
aankrose General Coding Help 4 3,341 May-10-2019, 02:02 AM
    Thread: Please help coding
Post: Please help coding

If given input in INPUT=9 , I would like to get below output Output:123456789 .1234567 ..12345 ...123 ....1 ...123 ..12345 .1234567 123456789S = 9 t=[] for i in range(1,S+1): t.append(i) for i1 i...
aankrose General Coding Help 4 3,341 May-09-2019, 06:19 PM
    Thread: Need Help
Post: RE: Need Help

Could someone help me to get required output? The number of rows must be between 11 and 20 and the The result will appear in the console output as indicated in the figure. If the user enters a value ...
aankrose General Coding Help 4 2,155 May-09-2019, 01:50 PM
    Thread: Better Coding request
Post: RE: Better Coding request

My Favorite perfringo Could you please explain me what print(f' accutally does ? i tried to find how it work , what i understand is , its kind of format , but i am now sure how print(f'#{i * "o"}#'...
aankrose General Coding Help 5 2,742 May-09-2019, 01:38 PM
    Thread: Need Help
Post: RE: Need Help

The number of rows must be between 11 and 20 and the The result will appear in the console output as indicated in the figure. If the user enters a value less than 11 rows, adjust the value from rows t...
aankrose General Coding Help 4 2,155 May-09-2019, 01:14 PM
    Thread: Better Coding request
Post: Better Coding request

start = 5 for i in range(start): if i == 0: print('##') else: print('#',i*'o','#',sep='')Output:I am getting my Expected Output ## #o# #oo# #ooo# #oooo#I am a Python Learner, w...
aankrose General Coding Help 5 2,742 May-08-2019, 08:47 PM
    Thread: Need Help
Post: Need Help

The number of rows must be between 11 and 20 and the The result will appear in the console output as indicated in the figure. If the user enters a value less than 11 rows, adjust the value from rows ...
aankrose General Coding Help 4 2,155 May-08-2019, 08:19 PM
    Thread: Need help getting the output
Post: RE: Need help getting the output

Nice and thank you
aankrose General Coding Help 10 4,561 Apr-12-2019, 02:35 AM
    Thread: Need help getting the output
Post: RE: Need help getting the output

@perfringo You are awesome , thanks buddy
aankrose General Coding Help 10 4,561 Apr-11-2019, 05:10 PM
    Thread: Need help getting the output
Post: RE: Need help getting the output

@perfringo: First of all , input has to be integer, not tuple , list will not support replace. @ichabod801 : Thanks for your suggestion , but here is what the output comes S = 5 H = 1 t=[] for i in ...
aankrose General Coding Help 10 4,561 Apr-10-2019, 09:02 PM
    Thread: Need help getting the output
Post: Need help getting the output

S = 5 t=[] for i in range(1,S+1): t.append(i) for j in range(0,S): t[j] = '/' print(''.join(str(e) for e in t)) for i in range(S-1, 0, -1): t[i] = t[i-1] t[j] = 1Output:COD...
aankrose General Coding Help 10 4,561 Apr-10-2019, 04:41 PM
    Thread: Need help getting the output
Post: RE: Need help getting the output

Awesome skorost5, Thank you
aankrose General Coding Help 8 3,888 Apr-08-2019, 04:18 PM
    Thread: Need help getting the output
Post: RE: Need help getting the output

Thank you skorost5 , i was breaking my head for 1 week. Hmmm .. Lot to learn. Could you please explain below part? for i1 in range(0,S): print(''.join(str(e) for e in t)) for i in range(S-1...
aankrose General Coding Help 8 3,888 Apr-05-2019, 08:26 PM
    Thread: Need help getting the output
Post: Need help getting the output

S = input('Please enter something : ') S = int(S) T = S for i in range(S+1): T = S - T for j in range(T): T = T - 1 print(T, end='')Output:Please enter something : 5 ...
aankrose General Coding Help 8 3,888 Apr-05-2019, 04:13 PM
    Thread: Appending To Files Challenge
Post: RE: Appending To Files Challenge

Try using W+ Use W+ , here is the result numbers = 1 for i in range(2, 12): while 13 >= numbers > 0: multiply = numbers * i print('| {0} Times {1} is {2} '.format(numbers,...
aankrose Homework 3 2,905 Mar-26-2019, 08:37 PM

User Panel Messages

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