Skip to content

How to display dataframe from csv file with OOP method #53065

@mhd-fauzan

Description

@mhd-fauzan

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

I can’t post new questions right now

Question about pandas

Hi, I'm a novice programmer. I want to display a dataframe coming from a csv file using an object oriented programming method. Here I show the code.

import pandas as pd
import matplotlib.pyplot as plt

class csv2df():
    
    def __init__(self):
        df = pd.read_csv("RMS level.csv")

Explanation please. Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssue that has not been reviewed by a pandas team memberUsage Question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions