Nov-26-2022, 05:23 PM
(This post was last modified: Nov-26-2022, 05:25 PM by astral_travel.)
alright !!
hehehe....that's awesome !
-----------------------------------
there's an error that came up in the IDE:
hehehe....that's awesome !
-----------------------------------
there's an error that came up in the IDE:
Error:Name 'columnSeriesObj' can be undefined
here's the code:import pandas as pd data = pd.read_csv('/home/tal/investing/allstocks.csv') print("Original 'allstocks.csv' CSV Data: \n") print(data) df = pd.DataFrame(data) for column in df['Ticker']: columnSeriesObj = df['Ticker'] print('Column Contents : ', columnSeriesObj.values) columnSeriesObj.to_csv('/home/tal/investing/Ticker.csv', index=False)although i got the wanted result, it produced the file i want with only one of the columns (the Ticker column), but why in the IDE it gives me this error ?