Python Forum
Pandas to_csv in for loop AttributeError: 'tuple' object has no attribute 'to_csv'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas to_csv in for loop AttributeError: 'tuple' object has no attribute 'to_csv'
#9
@Yoriz,

Thank you for your help! The script did run for me.

I have a question about a column header with spaces vs underscores. What would I do in a situation where I wanted to convert 'First Attempt Date' to astype(str)
Reply


Messages In This Thread
RE: Pandas to_csv in for loop - by Yoriz - Apr-22-2019, 02:30 PM
RE: Pandas to_csv in for loop - by NSearch - Apr-22-2019, 02:38 PM
RE: Pandas to_csv in for loop AttributeError: 'tuple' object has no attribute 'to_csv' - by NSearch - Apr-22-2019, 04:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error "list object has no attribute transpose()" usercat123 4 4,457 Jan-28-2022, 12:01 PM
Last Post: usercat123
  Python PDF merging from an excel pandas for loop siraero 0 2,265 Aug-16-2020, 09:34 AM
Last Post: siraero
  What is the mechanism of numpy function returning pandas object? Ibaraki 2 2,635 Apr-04-2020, 10:57 PM
Last Post: Ibaraki
  Python Pandas for loop/while loop question mrashy 1 3,975 Mar-24-2020, 04:39 AM
Last Post: deanhystad
  AttributeError: (“module 'pandas' has no attribute 'rolling_std'” Mariana136 4 7,744 Sep-23-2019, 12:56 PM
Last Post: Mariana136
  Loop pandas data frame by position ? Johnse 1 2,345 Sep-06-2019, 12:26 AM
Last Post: scidam
  AttributeError: module 'numpy' has no attribute 'array aapurdel 7 46,466 May-29-2019, 02:48 AM
Last Post: heiner55
  AttributeError: 'NoneType' object has no attribute 'all' synthex 2 5,412 Mar-07-2019, 11:11 AM
Last Post: synthex
  Please help with AttributeError: 'Netz' object has no attribute 'conv' DerBerliner 2 3,898 Feb-27-2019, 06:01 PM
Last Post: DerBerliner
  'list' object has no attribute 'reshape' SamSoftwareLtd 1 15,819 Nov-04-2018, 10:38 PM
Last Post: stullis

Forum Jump:

User Panel Messages

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