Unicode-Issue-And-Fix
title: "Unicode Issue and Fix"
author: "Rj"
date: 2019-04-22
description: "-"
type: technical_note
draft: false
import numpy as np
import pandas as pd
df = pd.read_csv('score.csv')
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-2-aee192733216> in <module>()
----> 1 df = pd.read_csv('score.csv')
~/anaconda3/envs/py36/lib/python3 …
Read More
Values-And-Index
title: "Values and Index"
author: "Rj"
date: 2019-04-22
description: "-"
type: technical_note
draft: false
import numpy as np
import pandas as pd
datatype = [('one', 'int32'), ('two', 'int32')]
values = np.zeros(3, dtype = datatype)
currrent_index = ['Row '+str(i) for i in range(1, 4)]
df = pd.DataFrame(values, index = currrent_index)
Read More