Python Forum
.split seemingly gets ignored
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.split seemingly gets ignored
#1
Hi, can you guys see why the .split method is being ignored?

from openpyxl import load_workbook

fb_user_data = load_workbook(filename = './spreadsheets/user_data.xlsx')

# Cell K2: first second third fourth
test_list = fb_user_data['users']['K2'].value
test_list.split()
print(test_list)
print(type(test_list))
Output:
first second third fourth <class 'str'> Process finished with exit code 0
I also tried removing the spaces and using commaas instead. Then I used "," in split. It did not change anything.
Reply


Messages In This Thread
.split seemingly gets ignored - by liquidsnake - Feb-21-2018, 11:09 PM
RE: .split seemingly gets ignored - by metulburr - Feb-21-2018, 11:44 PM
RE: .split seemingly gets ignored - by liquidsnake - Feb-22-2018, 12:51 AM
RE: .split seemingly gets ignored - by Larz60+ - Feb-22-2018, 02:54 AM
RE: .split seemingly gets ignored - by liquidsnake - Feb-22-2018, 05:02 AM
RE: .split seemingly gets ignored - by Larz60+ - Feb-22-2018, 06:34 AM
RE: .split seemingly gets ignored - by metulburr - Feb-22-2018, 07:17 AM
RE: .split seemingly gets ignored - by liquidsnake - Feb-22-2018, 07:21 AM
RE: .split seemingly gets ignored - by metulburr - Feb-22-2018, 04:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  why does VS want to install seemingly unrelated products? db042190 3 811 Jun-12-2023, 02:47 PM
Last Post: deanhystad
  Seemingly simple loop Weber585 7 3,774 Mar-21-2021, 07:19 PM
Last Post: jefsummers
  Seemingly unstable GPIO output while executing from RetroPie LouF 6 4,188 Feb-19-2021, 06:29 AM
Last Post: LouF

Forum Jump:

User Panel Messages

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