Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting in Pydroid #1

Open
MehmetKay-sudo opened this issue Jul 8, 2023 · 0 comments
Open

Plotting in Pydroid #1

MehmetKay-sudo opened this issue Jul 8, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@MehmetKay-sudo
Copy link
Owner

import libraries forr data visualisation'

import pandas as pd
import tkinter as tk
import matplotlib.pyplot as plt

read the .xlsx file

data = pd.read_excel("/home/data/user/0/py_data/Expenses_2023_aktuell.xlsx")

check the directory path

extract columns to plot

x = data["Amount"]
y = data["Months"]

creating the graph

plt.plot(x,y)
plt.xlabel("Amount")
plt.ylabel("Months")
plt.title("Expenses")

show plot

plt.show()

@MehmetKay-sudo MehmetKay-sudo added the good first issue Good for newcomers label Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant