You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import asyncio
from aiofile import AIOFile, LineReader, Writer
async def main():
async with AIOFile("file.csv", 'r') as afp:
async for line in LineReader(afp):
print(line[:10])
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
but this only reads the first 10 characters. How can i read the second column value of the simple csv attached here?.
The text was updated successfully, but these errors were encountered:
I have this csv file
and i want to read the second column.
I have this code
but this only reads the first 10 characters. How can i read the second column value of the simple csv attached here?.
The text was updated successfully, but these errors were encountered: