Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: This is an Object - Code interpretation
Post: This is an Object - Code interpretation

Hello all I am trying to gain a better understanding of object orientation programming. I cam across the following code:- import pandas as pd df = pd.read_csv("T.csv") print(df.head(2))This code ...
JoeDainton123 General Coding Help 2 145 Jun-16-2021, 06:50 PM
    Thread: Managing Objects
Post: Managing Objects

Hello all I was wondering if anyone could help shed some light on how to manage objects once they have been instantiated. I have a class that creates a person that takes various attributes and uses ...
JoeDainton123 General Coding Help 1 174 May-15-2021, 02:57 PM
    Thread: Listing All Methods Of Associated With A Class
Post: Listing All Methods Of Associated With A Class

Hello I wanted to ask whether it was possible to list all the methods associated with a Class for example:- I have created the following class:- class Human(): def __init__(self, sex, eye...
JoeDainton123 General Coding Help 3 346 May-09-2021, 04:42 PM
    Thread: Printing Object Names
Post: RE: Printing Object Names

(May-08-2021, 06:15 PM)JoeDainton123 Wrote: Hello all I am slowly moving ahead with my python journey. I wanted to ask the following regarding Object Oritentation. Question 1) I have created a c...
JoeDainton123 General Coding Help 5 405 May-09-2021, 03:30 PM
    Thread: Printing Object Names
Post: RE: Printing Object Names

(May-08-2021, 09:31 PM)deanhystad Wrote: The variable/value relationship is one way. Tom knows about the human object it references, but the object has no knowledge of Tom. If you want human to ha...
JoeDainton123 General Coding Help 5 405 May-09-2021, 03:25 PM
    Thread: Printing Object Names
Post: Printing Object Names

Hello all I am slowly moving ahead with my python journey. I wanted to ask the following regarding Object Oritentation. Question 1) I have created a class called human which when instantiated requ...
JoeDainton123 General Coding Help 5 405 May-08-2021, 06:15 PM
  Photo Thread: Setting Marker Edge Color In Plotting
Post: Setting Marker Edge Color In Plotting

Hello all I was hoping someone could help me fill in my gaps in my understanding regarding Python Plotting via matplotlib and the Python documentation. I am plotting some x&y data and customizin...
JoeDainton123 General Coding Help 0 385 Oct-26-2020, 10:48 PM
    Thread: Looping Through Large Data Sets
Post: RE: Looping Through Large Data Sets

(Oct-17-2020, 02:44 PM)buran Wrote: In your sample dataframe all values are strings, e.g. "218" vs 218. Both code yield the same result. Your right. Thank Buran I really appreciate your help.
JoeDainton123 General Coding Help 10 904 Oct-17-2020, 07:53 PM
    Thread: Looping Through Large Data Sets
Post: RE: Looping Through Large Data Sets

Hi Buran Thank you for your response. I think I understand, if no column names are specified in the dataframe then the values in the square brackets are the column index numbers. If column names ar...
JoeDainton123 General Coding Help 10 904 Oct-17-2020, 11:13 AM
    Thread: Looping Through Large Data Sets
Post: RE: Looping Through Large Data Sets

(Oct-03-2020, 04:06 AM)buran Wrote: can you provide sample dataframe (no need of 60 000 rows, just 2-3 rows is sufficient) Ideal would be to provide a code that creates a DataFrame with the same str...
JoeDainton123 General Coding Help 10 904 Oct-16-2020, 09:41 PM
    Thread: Implementing a Civil Engineering Project In Python
Post: Implementing a Civil Engineering Project In Python

Hi all I am Civil Engineering student who needs to undertake a project as part of my studies. I am also trying to learn Python and I am slowly getting to grips with the language (only started a few ...
JoeDainton123 News and Discussions 1 1,116 Oct-13-2020, 09:51 PM
    Thread: Complex X Tick Interval
Post: Complex X Tick Interval

Hi all I was hoping someone could help me solve an issue regarding setting the x tick interval for a plot. I have a very large data set, the x values are obtained from combining miles and yards colu...
JoeDainton123 General Coding Help 0 423 Oct-05-2020, 07:27 PM
    Thread: Grid Line not appearing at 0
Post: Grid Line not appearing at 0

Hello all I have a strange problem when making sub plots. I have 15 x sub plots in a figure, however all but 1 of the sub plots does not have a 0 on the Y axis as shown in the attachment. Not sure ...
JoeDainton123 General Coding Help 1 391 Oct-05-2020, 04:40 PM
    Thread: Creating Plots & Sharing X Axis
Post: RE: Creating Plots & Sharing X Axis

scidam Thanks.
JoeDainton123 General Coding Help 2 496 Oct-05-2020, 04:33 PM
    Thread: Image Processing in Python
Post: Image Processing in Python

Hello all I wanted to get the communities advice on a python project I am considering on embarking on. I have a PDF file that contains approx 50 pages each page containing a graph/plot. Along the t...
JoeDainton123 General Coding Help 1 625 Oct-04-2020, 10:05 PM
    Thread: Setting Tick Intervals In Sub Plots
Post: Setting Tick Intervals In Sub Plots

Hello all I was hoping someone could point me in the right direction regarding setting the intervals for the Y axis ticks. I have the following code:- axes[0].plot((df_raw_data.iloc[start_counter:en...
JoeDainton123 General Coding Help 1 413 Oct-03-2020, 09:20 PM
    Thread: Error When Plotting ValueError: x and y must have same first dimension
Post: Error When Plotting ValueError: x and y must have ...

Hi all I was hoping someone could help me. I am trying to create a series of plots from a large data set. But every plot has a different set of X & Y values. In the attachment I want to plot C...
JoeDainton123 General Coding Help 1 1,392 Oct-03-2020, 01:44 PM
    Thread: Creating Plots & Sharing X Axis
Post: Creating Plots & Sharing X Axis

Hello all I am trying to create a plot in matplotlib where I have 2 x data sets, Data Set 1 which has a list of XY co-ordinates (where the Y values are always positive) and Data Set 2 which has the s...
JoeDainton123 General Coding Help 2 496 Oct-02-2020, 10:10 PM
    Thread: Looping Through Large Data Sets
Post: RE: Looping Through Large Data Sets

Hi buran Thank you for your reply. I really like your way however when i attempt this i get an error. The code i am using is as follows:- df_raw_data[5] = df_raw_data[3] * 1760 + df_raw_data[4]T...
JoeDainton123 General Coding Help 10 904 Oct-02-2020, 09:27 PM
    Thread: Looping Through Large Data Sets
Post: Looping Through Large Data Sets

Hello all I have a csv file with over 60,000 rows of data which i have imported into a dataframe, I want to perform varies calculations on this dataframe. I am looping through the data using a while...
JoeDainton123 General Coding Help 10 904 Oct-02-2020, 06:59 PM

User Panel Messages

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