How to build a function that can visualize data of xlsx file system directly, plot and visualize it?

24 Views Asked by At

I am analizing and visualizing a rainfall historical data. The data file in xlsx contains data from 1993 to 2023. It am not able to visualize it.

I tried to use pandas but didn't find any this important out put. I tried to import file with these but couldn't

1

There are 1 best solutions below

1
tadams On

Sounds like a cool project. Pandas has a built-in xlsx importer. Have you tried that? If so, toss in the code you've got so far. Might look something like this:

import pandas
df = pandas.read_excel('sample.xls')

If that didn't work you could also try converting the xlsx to a csv and then import that.

df = pandas.read_csv('data.csv')