df1.dropna(inplace=True) df1["price_usd"].str.replace("$","",regex=False)
Using Pandas library while on Jupyter notebook. Converted a CSV file into data framework (df1). Need to remove $ from price_usd column as part of data cleaning.
My issue is after running the above code, still getting $ in the price_usd column values.
Once done, will convert price_usd from object datatype to float datatype.
submitted by /u/DigitalSplendid
[link] [comments]
r/learnpython df1.dropna(inplace=True) df1[“price_usd”].str.replace(“$”,””,regex=False) Using Pandas library while on Jupyter notebook. Converted a CSV file into data framework (df1). Need to remove $ from price_usd column as part of data cleaning. My issue is after running the above code, still getting $ in the price_usd column values. https://www.canva.com/design/DAGaks_FNh8/MRdWU-GB3AHDaEBvlmnH5Q/edit?utm_content=DAGaks_FNh8&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton Once done, will convert price_usd from object datatype to float datatype. submitted by /u/DigitalSplendid [link] [comments]
df1.dropna(inplace=True) df1["price_usd"].str.replace("$","",regex=False)
Using Pandas library while on Jupyter notebook. Converted a CSV file into data framework (df1). Need to remove $ from price_usd column as part of data cleaning.
My issue is after running the above code, still getting $ in the price_usd column values.
Once done, will convert price_usd from object datatype to float datatype.
submitted by /u/DigitalSplendid
[link] [comments]