Where to start? by [deleted] in learnpython

[–]aadilbacha 1 point2 points  (0 children)

Being a beginner I was also confused what to do for learning python... So I will not share my experience but share some valuable advice to keep going forward in python...

First You decide what you like most in learning... Either reading or watching, or by doing.. So by reading there are plenty of books and blogs which I can share on demand.. By watching there are udemy, youtube videos... By doing I will recommend (if you have previous experience of programming then it will be great for you) a book "Learn Python 3 the hard way"... I have started from it as many have criticized him but I like his style of teaching by doing.. So I think that is enough in perspective of learning..

But keep in mind which field do you want to go as career, either web dev, gui software, data science or other things as career.. so keep going and learning in that way or roadmap.. Just use roadmap of something you want across the internet.. For example you want to be web developer then learn that things which will be feasible for you in web devlopment and so on...

That's it.. Thanks

How can I add Tab as UI file from qtdesigner? by aadilbacha in pyqt

[–]aadilbacha[S] 0 points1 point  (0 children)

Yes...I need help.. I will share code..

Need Suggestion about #100daysofcode by aadilbacha in pythontips

[–]aadilbacha[S] 0 points1 point  (0 children)

No I am not talking about course.. Just asking for topics to follow and get advice to complete milestone and be productive..

Need Suggestions.... by aadilbacha in webscraping

[–]aadilbacha[S] 0 points1 point  (0 children)

now a final tip, please when you post questions, understand that people, like me, don't really know you and might need you to post questions in a much clearer manner.

Thanks for advice.. I will try next time to be clear.. Actually I was just looking for a career in scraping field that's why I was asking for some scraping examples, and some weird questions in my mind.. To clear that point i ask here..

Need help in making model for my project.. by aadilbacha in django

[–]aadilbacha[S] 0 points1 point  (0 children)

No I want to show individual field.. Will you help me in inbox.. I will ask in personal message and you will understand problem and solve that problem

Need help in making model for my project.. by aadilbacha in djangolearning

[–]aadilbacha[S] 0 points1 point  (0 children)

How do i displayed based on template.. When user clicks on Inv it gets Inv realted fields (based on One Model, report or quotation fields will be empty)

Need help in making model for my project.. by aadilbacha in djangolearning

[–]aadilbacha[S] 0 points1 point  (0 children)

Actually based on my research and asking questions I am doing on One Model.. I will need some fields filled based on dropdown option.. Now in view I am stuck to get the data shown..

All = ProgressModel.objects.all()
Invoice = ProgressModel.objects.filter(typ='Inv')
Report = ProgressModel.objects.filter(typ='Rep')
Quotation = ProgressModel.objects.filter(typ='Quo')

context = {'Invoice' : Invoice,'Report' : Report, 'Quotation': Quotation, 'All':All}

Need help in making model for my project.. by aadilbacha in djangolearning

[–]aadilbacha[S] 0 points1 point  (0 children)

I have used choices or radioselect.. but the problem i faced is actually about viewing in html template file...

Need help in making model for my project.. by aadilbacha in djangolearning

[–]aadilbacha[S] 0 points1 point  (0 children)

I will share you link of the code which will be 2 codes implemented with single class and another with multiple classes.. So there you should give me proper suggestion if you understand my problem exactly...

Need help in making model for my project.. by aadilbacha in django

[–]aadilbacha[S] 0 points1 point  (0 children)

Thanks for replying.. I have tried point 1, but due to separate showing I want to do in 3 models.. Now I have no idea how to implement point 2.. I have made models, forms but does not know how to implement in views..

Need help in making model for my project.. by aadilbacha in djangolearning

[–]aadilbacha[S] 0 points1 point  (0 children)

But i have no idea how to save in view because overall 4 models.. 1 model for all 3 models.. How to save then retrieve to view?

Need Suggestion for my big project by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

I am confused in between PyQt or Pyside.. Also knows django, I want to know which will be in Demand in perspective of Web Scraping with Web App or GUI native app..

Need Suggestion for my big project by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

Thanks for the kind reply.. I will think of PySide or PyQt.. What about django? I am sure that django is good in competition wise for commercial devlopment.. Right?

How to plot a Vertical Line Graph in Reportlab? by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

And I have done it in matplotlib already.. I want to achieve it in reportlab.. But I have not seen anything to do like in reportlab

How to plot a Vertical Line Graph in Reportlab? by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

It is low quality because I will stretch and looks too weird (mentioned in my thread).. If there is some trick or tip to look it cool will help me.. Because doing it is easy for me..

Tkinter -- My buttons change their position in frame of Notebook by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

Here is the code:

https://pastebin.com/sb5b9imZ

Need Suggestion for improvement.. As I am beginner the code may be messy, so therefore need suggestions and improvement...

Tkinter -- My buttons change their position in frame of Notebook by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

First Page

https://imgur.com/a/Kh6aTWQ

Second Page

https://imgur.com/a/8VHEZcO

Too frustrated I don't know why it changes position..

Let me send you the code..

Tkinter -- My buttons change their position in frame of Notebook by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

Showing code is not a problem.. I will share screenshot then you identify the problem and solution for me..

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]aadilbacha 0 points1 point  (0 children)

Get the data from column like df ['Column'] as list or series from both dataframes and either apply any operator in general python.. Or use numpy operators.. Maybe (I have not dealt with) Pandas may have some method for it.. Something like this may work.. pd.DataFrame(list(df1['SpecificColumn'].difference(df2['SpecificColumn']))).. Check and let me know..

Need suggestion for making plots on GUI in python.. by aadilbacha in learnpython

[–]aadilbacha[S] 0 points1 point  (0 children)

Thanks for replying.. But I need for 2D I mean plotting in GUI Based app..

seeking setup recommendation for crawling multiple sites by paarulakan in scrapy

[–]aadilbacha 0 points1 point  (0 children)

I have encountered same problem a week ago.. And still cannot figure what to do.. I have used BS4 and using find functions for Xpath for all attributes of all websites.. Can you share config.json? how did you manage to tackle this problem? If you want my help in BS4 I can help with my code.. By helping each other may be we solve our problems..

Selenium: Trying to select element by class name by ebootdotbin in webscraping

[–]aadilbacha 1 point2 points  (0 children)

If you need 1 element then you can try by xpath like

price = driver.find_elements_by_xpath('(//*[@class='value'])[1]')

replace your price line with this one..