Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python for Everybody 3.3 assignment
Post: RE: Python for Everybody 3.3 assignment

print()
ayaz786amd Homework 7 31,721 Jan-08-2019, 07:48 AM
    Thread: pdftable on Python 3.7
Post: pdftable on Python 3.7

Hi i have tried to install pdftable but its showing an error 'check your python version'. It means its not available for latest versions. Can i install it somehow on python 3.7 or is there any other ...
ayaz786amd General Coding Help 1 1,915 Dec-29-2018, 05:56 AM
    Thread: Pandas and numpy
Post: RE: Pandas and numpy

i have this type of problem early in the start. Installing on your system and on an interpreter are different things
ayaz786amd Data Science 7 6,419 Dec-26-2018, 07:37 AM
    Thread: Complex Long codes
Post: RE: Complex Long codes

which concepts falls into this code current_room = rooms[current_room[command]]
ayaz786amd General Coding Help 5 5,908 Dec-21-2018, 04:48 AM
    Thread: Complex Long codes
Post: RE: Complex Long codes

yeah again not enough explanation. And no explanation there. For example In First code, Line 33 current_room = 'temple' why its not like Line32? In 2nd code line 30, current_room = rooms[current_roo...
ayaz786amd General Coding Help 5 5,908 Dec-15-2018, 08:20 AM
    Thread: Complex Long codes
Post: Complex Long codes

Hi Any tutorials which explains complex long codes. For examples codes which have functions and then have if statements and loops in it. Like below is the code from nltk.tokenize import word_tokeniz...
ayaz786amd General Coding Help 5 5,908 Dec-14-2018, 07:40 AM
    Thread: Code showing no reults
Post: Code showing no reults

Fraud = df[df['Class'] == 1] Valid = df[df['Class'] == 0] outlier_fraction = len(Fraud)/ float(len(Valid)) print(outlier_fraction) print('Fraud Cases ()'.format(len(Fraud))) print('Valid Cases()'.fo...
ayaz786amd General Coding Help 1 1,923 Dec-10-2018, 09:57 AM
    Thread: Adspy installation issue
Post: RE: Adspy installation issue

lol a problem is must in every tutorial i follow in youtube , coursera or anyother platform
ayaz786amd General Coding Help 5 4,043 Dec-05-2018, 11:02 AM
    Thread: Adspy installation issue
Post: RE: Adspy installation issue

i have created login no cost required. The issue seems i m installing from C:\Program Files\Scripts(here pip is located) but its searching in some other hidden path C:\User\Appdata\...
ayaz786amd General Coding Help 5 4,043 Dec-04-2018, 04:39 AM
    Thread: Adspy installation issue
Post: Adspy installation issue

Unable to install adspy, try to install via cmd and pycharm both. Pip is updated. I think its a path issue. Do i need to change some settings? [attachment=500] [attachment=501]
ayaz786amd General Coding Help 5 4,043 Dec-03-2018, 06:53 AM
    Thread: ValueError: Found input variables with inconsistent numbers of samples: [0, 3]
Post: RE: ValueError: Found input variables with inconsi...

i have some notes on above lines not relevant to this code. Code works when i removed X= X[:-forecast_out+1]
ayaz786amd Data Science 2 9,607 Nov-27-2018, 07:12 AM
    Thread: SVM error
Post: SVM error

The following error is due to svm code clf = svm.SVR()Error:C:\Users\Ayaz\AppData\Roaming\Python\Python37\site-packages\sklearn\svm\base.py:196: FutureWarning: The default value of gamma will change f...
ayaz786amd General Coding Help 1 12,597 Nov-26-2018, 09:47 AM
    Thread: ValueError: Found input variables with inconsistent numbers of samples: [0, 3]
Post: ValueError: Found input variables with inconsisten...

Hi import pandas as pd import quandl, math import numpy as np import sys from sklearn import preprocessing, model_selection, svm # model_selection replaces cross_validation from sklearn.linear_mode...
ayaz786amd Data Science 2 9,607 Nov-26-2018, 08:00 AM
    Thread: TypeError: 'method' object is not subscriptable
Post: TypeError: 'method' object is not subscriptable

Hi The code is: import pandas as pd import quandl import math df = quandl.get('FINRA/FORF_TLLTD') df['PCT']= df['ShortVolume']/df['TotalVolume']*100 df = df[['ShortVolume','TotalVolume', 'PCT']] fo...
ayaz786amd Data Science 1 39,286 Nov-24-2018, 09:41 AM
    Thread: CSV file dont open with code
Post: RE: CSV file dont open with code

thanks its working
ayaz786amd Data Science 2 2,616 Nov-21-2018, 09:13 AM
    Thread: CSV file dont open with code
Post: CSV file dont open with code

i have put the following code in python shell and it working fine but not opening in pycharm import pandas as pd import numpy as np df = pd.read_csv('C:\Program Files\PycharmProjects\code examples\St...
ayaz786amd Data Science 2 2,616 Nov-21-2018, 05:38 AM
    Thread: Unable to open file
Post: RE: Unable to open file

it immediately print print("a file"):D
ayaz786amd General Coding Help 7 4,778 Nov-21-2018, 05:31 AM
    Thread: Unable to open file
Post: RE: Unable to open file

i think there is nothing wrong with code because all the suggested codes are giving same output [Finished in s]. There may be something i didnt installed properly or have some issue with sublime text ...
ayaz786amd General Coding Help 7 4,778 Nov-20-2018, 03:29 AM
    Thread: Unable to open file
Post: RE: Unable to open file

there is no syntax error. Yes 123.txt is not empty file and its placed in the same folder as python file. This python settings is a headache more difficult than understanding code
ayaz786amd General Coding Help 7 4,778 Nov-19-2018, 09:53 AM
    Thread: Unable to open file
Post: Unable to open file

Hi the code is print("a file") text_file = open('123.txt','r') print(text_file.read()) text_file.close()but its not opening the file. just showing [Finished in 0.2s] in console. I am using sublime...
ayaz786amd General Coding Help 7 4,778 Nov-19-2018, 09:46 AM

User Panel Messages

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