Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Pandas module not working
Post: Pandas module not working

Hi All, I recently got a new computer I installed python v 3.10 and am using the pycharm IDE. I have installed pandas but it is not working. I am getting this error message everytime I run the code...
Hass General Coding Help 2 1,669 Apr-14-2022, 11:43 AM
    Thread: Greph not displaying.
Post: Greph not displaying.

Hi I wrote the following code for a decision tree. import pandas as pd import pydotplus from sklearn.tree import DecisionTreeClassifier # Import Decision Tree Classifier from sklearn.model_selection...
Hass General Coding Help 0 1,266 Mar-15-2020, 01:35 AM
    Thread: Webscparing data within tags
Post: Webscparing data within tags

Hi I wrote the following code to extract property details. At the moment I am trying to extract the area. import requests from bs4 import BeautifulSoup #Loads the webpage r = requests.get("https://...
Hass Web Scraping & Web Development 0 1,321 Oct-21-2019, 07:39 PM
    Thread: Graph not plotting
Post: Graph not plotting

Hello All, I wrote this code and it is compiling well. For whatever reason its not showing the graph. I would really appreciate it if you will kindly point out why the graph is not plotting. impor...
Hass General Coding Help 1 1,914 Sep-14-2019, 09:33 AM
    Thread: Comparing Dates to find the next date
Post: RE: Comparing Dates to find the next date

Hi, Unfortunately that did not work. it returned the following error message Error:Traceback (most recent call last): File "C:\Users\Hass\eclipse-workspace\FTS\src\Excel.py", line 12, in <modu...
Hass General Coding Help 5 2,799 Jan-20-2019, 12:40 AM
    Thread: Comparing Dates to find the next date
Post: RE: Comparing Dates to find the next date

Hi Guys, This is the code so far. My understanding is that df2 which is referencing the "date" column should be converted to datetime type. import pandas import datetime df1=pandas.read_excel("FB.xl...
Hass General Coding Help 5 2,799 Jan-19-2019, 09:32 PM
    Thread: Can't Resolve Webscraping AttributeError
Post: Can't Resolve Webscraping AttributeError

Hi, The following code is meant to get table for "IFPI 2014 data" and put it in a csv file. Although the csv file is being created but there is no data in it. import csv import urllib.request from b...
Hass Web Scraping & Web Development 1 2,260 Jan-15-2019, 08:03 PM
    Thread: Comparing Dates to find the next date
Post: Comparing Dates to find the next date

Hello I have an excel file with 2 sheets. Data in sheet 1 Date Open High Low Close 16/11/2012 22.25 23.93 22.18 23.56 15/11/2012 22.34 22.50 21.65 22.17 14/11/2012 20.10 22.50 19.93 22.36 13/...
Hass General Coding Help 5 2,799 Jan-13-2019, 01:38 AM
    Thread: Incorrect code output (File not being created)
Post: RE: Incorrect code output (File not being created)

Hi Thanks for pointing out one of the mistakes. I have added in the following line of code after myfile.write temp_convert(temperatures)Unfortunately its still not working. I am calling the temp_con...
Hass General Coding Help 4 2,874 Dec-31-2018, 08:38 PM
    Thread: Incorrect code output (File not being created)
Post: Incorrect code output (File not being created)

Hello, As a newbie I wrote the following code. temperatures = [10, -20, -289, 100] def temp_convert(temperatures): with open("temps.txt", 'w') as myfile: for c in temperatures: ...
Hass General Coding Help 4 2,874 Dec-31-2018, 07:23 PM
    Thread: Data in excel
Post: Data in excel

Hello, I am new to python so apologies advance if this question doesn’t make sense. I have an excel file that has 2 sheets. Sheet 1 is where the formulas are and sheet 2 is where the raw data is. ...
Hass General Coding Help 1 2,278 Nov-30-2018, 12:16 AM

User Panel Messages

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