I uploaded a CSV file to my google drive and shared it and created python code for anyone to run it.
The code imports Pandas
Can someone please test this code and tell me what they see or give me the error message,
import pandas as pd
url=’https://drive.google.com/file/d/1leAVVaw7j0LXy8tWZyP727DeLA43LZqx/view?usp=sharing‘
file_id=url.split(‘/’)[-2]
dwn_url=’https://drive.google.com/uc?id=‘ + file_id
df = pd.read_csv(dwn_url, on_bad_lines=’skip’)
#df is a python pandas dataframe
pd.set_option(‘display.width’, 1200)
pd.set_option(‘display.max_rows’, None)
pd.set_option(‘display.max_columns’, None)
print(‘——-‘)
print(df.shape)
print(df.head(15))
submitted by /u/RightLaugh5115
[link] [comments]
r/learnpython I uploaded a CSV file to my google drive and shared it and created python code for anyone to run it. The code imports Pandas Can someone please test this code and tell me what they see or give me the error message, import pandas as pd url=’https://drive.google.com/file/d/1leAVVaw7j0LXy8tWZyP727DeLA43LZqx/view?usp=sharing’ file_id=url.split(‘/’)[-2] dwn_url=’https://drive.google.com/uc?id=’ + file_id df = pd.read_csv(dwn_url, on_bad_lines=’skip’) #df is a python pandas dataframe pd.set_option(‘display.width’, 1200) pd.set_option(‘display.max_rows’, None) pd.set_option(‘display.max_columns’, None) print(‘——-‘) print(df.shape) print(df.head(15)) submitted by /u/RightLaugh5115 [link] [comments]
I uploaded a CSV file to my google drive and shared it and created python code for anyone to run it.
The code imports Pandas
Can someone please test this code and tell me what they see or give me the error message,
import pandas as pd
url=’https://drive.google.com/file/d/1leAVVaw7j0LXy8tWZyP727DeLA43LZqx/view?usp=sharing‘
file_id=url.split(‘/’)[-2]
dwn_url=’https://drive.google.com/uc?id=‘ + file_id
df = pd.read_csv(dwn_url, on_bad_lines=’skip’)
#df is a python pandas dataframe
pd.set_option(‘display.width’, 1200)
pd.set_option(‘display.max_rows’, None)
pd.set_option(‘display.max_columns’, None)
print(‘——-‘)
print(df.shape)
print(df.head(15))
submitted by /u/RightLaugh5115
[link] [comments]