Python Forum
Giving index when joining dataframes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Giving index when joining dataframes
#2
i have got the problem solved. i have added index_col when reading csv file.
from
df = pd.read_csv('stock_dfs/{}.csv'.format(ticker))
to
df = pd.read_csv('stock_dfs/{}.csv'.format(ticker), index_col=0)
Reply


Messages In This Thread
Giving index when joining dataframes - by kw42chan - Jul-06-2019, 03:55 AM
RE: Giving index when joining dataframes - by kw42chan - Jul-06-2019, 06:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Getting Index Error - list index out of range krishna 2 2,619 Jan-09-2021, 08:29 AM
Last Post: buran
  Anyone interested in joining a start-up let me know! JackTarsh 1 1,696 Oct-27-2020, 03:22 PM
Last Post: JennieGregg
  Getting Index Error - list index out of range RahulSingh 2 6,159 Feb-03-2020, 07:17 AM
Last Post: RahulSingh
  Merging two DataFrames based on indexes from two other DataFrames lucinda_rigeitti 0 1,755 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