Python Forum
Why can't I display these dataframes?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why can't I display these dataframes?
#1
I'm trying to take an average reading of radio scans I took at different locations. As I understand it I should have created a list of 5 dataframes. I can print them no problem. But I cannot plot them on a graph, nor can I apply a to_csv() function to them.

number_header_lines = 12
s=['40','50', '60', '70', '80']

for i in range(len(s)):  
    s1 = pd.read_csv(s[i]+'01.csv', header = number_header_lines, skipinitialspace = True)
    s2 = pd.read_csv(s[i]+'02.csv', header = number_header_lines, skipinitialspace = True)
    s3 = pd.read_csv(s[i]+'03.csv', header = number_header_lines, skipinitialspace = True)

    s_ave = (s1+s2+s3)/3
    print(s_ave)
    s_ave
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Merging two DataFrames based on indexes from two other DataFrames lucinda_rigeitti 0 1,726 Jan-16-2020, 08:36 PM
Last Post: lucinda_rigeitti

Forum Jump:

User Panel Messages

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